Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a self join? Explain it with an example?

Answer Posted / pradeep sharma (http://www.tec

create table emp
(
empid int,
mgrid int,
empname varchar(50)
)
insert into emp values(1,2,'a')
insert into emp values(2,3,'b')
select * from emp

select e.empname as employee,d.empname as mgr from emp e
inner join emp d
on d.empid=e.mgrid

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does this query return 0?

1022


Explain about the database management systems.

976


What is an application role and explain a scenario when you would use one?

1012


Explain the role of indexing in databases?

1134


Write short notes on manual refreshes.

2738


Explain the process of the user request and data generating?

1095


How long can an error message be in raiseerror function?

1006


Explain about query and reporting.

2096


What is normalization? Explain different levels of normalization?

63127


How can I detect whether a given connection is blocked?

1055


Explain the rollup operator?

1082


How to customize error conditions.

2152


explain detail about ftp in datastage?

2246


Explain about relational database management systems?

971


What is a database development?

971