JOINS¶
By using JOINS we can retrive the data from two or more tables
INNER JOIN :¶
Only matchin records comes from both tables
*** For example
1 2 3 | |
LEFT JOIN :¶
All matching + non matching records comes from left table, for non matching null will come in right table
1 2 3 4 | |
RIGHT JOIN :¶
All matching + non matching records comes from right table, for non matching null will come in left table
1 2 3 4 | |
FULL JOIN :¶
All matching + non matching records comes from both tables, for non matching null will come in both tables
1 2 3 4 | |
CROSS JOIN :¶
It is the cartesian product tables two table There is no ON condition
1 2 3 | |