Hello friends
can you tell me .what is self join in sql (with example).how we use it.
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nilesh JadavPosted Jun 2, 2015, 8:07 AM
Self Join: Joining the table itself called self join. Self join is used to retrieve the records having some relation or similarity with other records in the same table. Here we need to use aliases for the same table to set a self join between single table and retrieve records satisfying the condition in where clause.
Here is the link just check it out : self join query in sql server | self join example in sql server
hope it works for you. Mark accepted if it works. Thank you !