SQL Self JOIN
Last updated
Was this helpful?
Last updated
Was this helpful?
A self JOIN is a regular join, but the table is joined with itself.
In this tutorial we will use the well-known Northwind sample database.
Below is a selection from the "Customers" table:
SQL Self JOIN Example
The following SQL statement matches customers that are from the same city: