Skip to content

NATURAL

SELECT *
FROM table1
NATURAL JOIN table2;
+------+------+
| ID | Name |
+------+------+
| 1 | John |
| 2 | Jane |
+------+------+

The SQL command above executes a natural join between table1 and table2. In a natural join, only the rows with common values in both tables are returned. In our output, columns ID and Name are the common fields in both tables, so only the rows with these values are displayed.