Introduction-to-Join-Types
Introduction-to-Join-Types
Join Types
Join types are techniques for combining data from multiple
tables based on shared columns or keys.
Inner Join
The inner join returns only matching rows from both tables.
Right Table
All rows are included, regardless of a match in the left table.
Left Table
Only rows that match in the right table are included.
Null Values
If no match is found in the left table, null values are inserted.
Full Outer Join
The full outer join returns all rows from both tables, regardless
of matching values.
SQL Syntax
SELECT * FROM table1 CROSS JOIN table2
Self Join
A self join combines a table with itself based on a common
column, but it treats the table as two separate entities.
1 No Matching Criteria
It does not require a shared column or key to combine the rows.