0

What is the difference between left join and right join?

9th Oct 2018, 9:39 AM
Sri Navya
2 odpowiedzi
+ 1
INNER JOIN gets all records that are common between both tables based on the foreign key LEFT JOIN gets all records from the LEFT linked table but if you have selected some columns from the RIGHT table, if there is no related records, these columns will contain NULL RIGHT JOIN is like the above but gets all records in the RIGHT table FULL JOIN gets all records from both tables and puts NULL in the columns where related records do not exist in the opposite table Reading this article will help you alot: https://www.codeproject.com/Articles/33052/Visual-Representation-of-SQL-Joins
9th Oct 2018, 12:12 PM
Willem Roos
0
a left join b == b right join a.
9th Oct 2018, 10:52 AM
Schindlabua
Schindlabua - avatar