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 / ram

Normally we joins for retrieve data from more than 1 table

In some cases we need to join 1 table itself to join itself
condition is table having two column with same data type &
size but name are different
In emp table empno & mgrno are two columns example for this


select ename,job,sal,e.empno,m.mgrno from emp e inner join
emp m on m.mgrno=e.empno

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do we use distinct statement? What is its use?

1032


What is record type in pl sql?

995


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

1104


Can we use update in sql function?

1064


What is consistency?

1126


What are the qualities of 2nf?

1039


What is output spooling in sql*plus?

1036


What is sql and also describe types of sql statements?

1066


What is pl/sql table? Why it is used?

1037


Can we use distinct and group by together?

1057


Can a varchar be a primary key?

1009


How to get unique records from a table?

973


What is mutating trigger?

1024


Is it possible for a table to have more than one foreign key?

1030


What is trigger explain it?

1017