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...

Explain SELF JOIN ?

Answer Posted / manoj pandey

SELF JOIN is like joining a table with itself, to get a recursive series of data within the table. Like in Employee table to get Manager details you need to join Manager ID with Employee ID in the same table, like:

SELECT
E.EmployeeID,
E.EmployeeName,
E.ManagerID,
M.EmployeeName as ManagerName
FROM Employee E
LEFT JOIN Employee M
ON M.EmployeeID = E.ManagerID

~Manoj(SQLwithManoj.wordpress.com)

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are the olap features?

960


Which is the latest version of sql server and when it is released?

1114


Explain what are the authentication modes in sql server?

1022


What is optimistic concurrency?

1039


Is it possible to update the views? If yes, how, if not, why?

1031


How to use "begin ... End" statement structures in ms sql server?

1049


Describe in brief sql server monitoring ways.

1054


How to replace the Query Result 'Null Value' with a text ?

1045


What are the characteristics of modern DBMS?

1092


What is query and its types?

918


difference between Clustered index and non clustered index ?

996


How do you migrate data from mssql server to azure?

165


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

973


What will be the maximum number of indexes per table?

963


what is nonclustered index

961