Customers where would produce the following result
Example:
Consider the following two tables, (a) CUSTOMERS table is as follows:
|
---|
This would produce the following result:
|
---|
|
---|
SELF JOIN
The SQL SELF JOIN is used to join a table to itself as if the table were two tables, temporarily renaming at least one table in the SQL statement.
Example:
Consider the following two tables, (a) CUSTOMERS table is as follows:
|
---|
TUTORIALS POINT
Simply Easy Learning