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 does cross join work in sql?

1076


Is microsoft sql free?

1141


in oracle 10g sw after compiling procedure how to pass parameter values ,if we (v_empid out number)how to give empid after successful compilation program.This site exact suitable for 10g with respect to question & answer same format , im trying sql browser & sql command prompt using exec procedure name & respective parameters.

2135


Does mysql_real_escape_string prevent sql injection?

994


What is having clause in sql?

1018


what is a trigger in mysql? : Sql dba

1214


How global cursor can be declare with dynamic trigger ?

2270


how to convert numeric values to character strings? : Sql dba

1157


Do we need commit after truncate?

1136


Is id a reserved word in sql?

1187


what are enums used for in mysql? : Sql dba

1228


How do you write an inner join query?

994


what is 'mysqldump'? : Sql dba

1166


Show how functions and procedures are called in a pl/sql block.

1183


How many types of tables are there?

996