Search⌘ K

Self Inner Join

Explore how to join a table with itself using self inner joins in SQL. Understand the role of aliases, the USING clause, and how row matching works to filter results. This lesson helps you grasp how self joins function and how to apply them to extract meaningful data.

We'll cover the following...

Self Inner Join

The simplest join one can use is the inner join. Rows from two tables are joined together using a common column between them.

Syntax

SELECT *

FROM table1

INNER JOIN table1

ON <join condition>;

Connect to the terminal below by clicking in the widget. Once connected, the command line ...