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 can you fetch first 5 characters of the string?

946


How do you optimize a query?

939


How can we optimize a sql query?

982


How do I make sql search faster?

936


How do I run a program in pl sql?

951


How to return multiple rows from the stored procedure?

912


What is memory optimized?

1008


What is crud stand for?

931


Which is better cte or subquery?

970


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

1001


How exception is different from error?

970


How many triggers can be applied on a table?

880


what is 'trigger' in sql? : Sql dba

1011


Why sql query is slow?

929


What is sql*plus?

1016