SQL Self JOIN
Last updated
Last updated
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: