C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
3
Reply
What is a self join?
Bhasker Das
19y
8k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
Self join is join which is join against equality-LikeEmployee Id is the Id of Manager Select E.Name as E,M.Name as M from Emp Where E.id=M.idwhere
Santosh Kumar
9y
0
Just in case, if they ask you to write query.... TableName: T1, Columns: EId, EName, MId select E1.EId as EmployeeId, E1.Ename as EmployeeName, E2.EName as ManagerName from T1 as E1, T1 as E2 where E1.MId = E2.EId
nbp
19y
0
Self join is just like any other join, except that two instances of the same table will be joined in the query. Here is an example: Employees table which contains rows for normal employees as well as managers. So, to find out the managers of all the employees, you need a self join.
Bhasker Das
19y
0
What is a view?
What is a trigger?
Message