0

What's the importance of using a self join in SQL queries?

Self join in sql queries

19th May 2019, 5:34 PM
Kris O. Ouko
Kris O. Ouko - avatar
1 Odpowiedź
+ 4
Kris O. Ouko It is useful for querying hierarchical data or comparing rows within the same table. A self join uses the innerjoin or left join clause. Because the query that uses self join references the same table, the table alias is used to assign different names to the table within the query. source: http://www.sqlservertutorial.net/sql-server-basics/sql-server-self-join/ I hope I was helpful
19th May 2019, 5:45 PM
Alessio Benvenuti
Alessio Benvenuti - avatar