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

How would you reference column values before and after you have inserted and deleted triggers?

1065


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1193


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2024


What is the difference between stored procedure and view?

1020


How do I run a script in sql developer?

950


What are the two types of exceptions.

1171


How can get second highest salary in sql?

988


What is an exception in PL/SQL? What are the two types of exceptions?

1312


What is sql mysql pl sql oracle?

1072


What is the difference between in and between in sql?

1061


Why are aggregate functions called so?

947


what is 'mysqlimport'? : Sql dba

1054


What is sharding in sql?

987


What is AUTH_ID and AUTH_USER in pl/sql ?

2193


How do I order columns in sql?

1007