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 ?

Answer Posted / rupesh.dbms@gmail.com

It is the join in which result is obtained by equating two
coloumns with same values of one table for example
emp(eno,ename,mgrno) eno is primary key and mgrno is
recursive foreign key

select e.eno,e.ename,m.mgrno,m.ename mgrname
from emp e, emp m
where m.eno=e.mgrno;
note : one table emp is replicated as m , e and then
result is obtained.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sql objects?

1015


Can a foreign key be null?

1033


Can there be 2 primary keys in a table?

952


What is difference between ms sql and mysql?

914


What is trigger in sql?

1030


What does where 1 1 mean in sql?

981


What are sql procedures?

967


What is sql entity?

1031


What do you think about pl/sql?

950


Can we alter stored procedure?

945


Why should I use postgresql?

973


Define select, insert, create, delete, update, drop keywords

997


What is implicit cursor in pl sql?

1031


Does a join table need a primary key?

905


Do prepared statements prevent sql injection?

898