based on the same column names in the joined tables.
A NATURAL JOIN can be an inner join or left join or right join. If you do not specify a join explicitly e.g., INNER JOIN, LEFT JOIN, RIGHT JOIN, PostgreSQL will use the INNER JOIN by default.
If you use the asterisk (*) in the select list, the result will contain the following columns:
All the common columns, which are the columns from both tables that have the same name.
Every column from both tables, which is not a common column.
Basic syntax:
SELECT select_list
FROM T1 NATURAL [INNER, LEFT, RIGHT] JOIN T2;
SELECT select_list FROM T1
INNER JOIN T2 USING (matching_column);
equivalent to: