0

What is theexact utility of Left and Right Joins?How these can be explained with certain real world example?

23rd Feb 2017, 8:12 AM
Ashutosh Sharma
Ashutosh Sharma - avatar
2 Respuestas
+ 1
A
23rd Feb 2017, 8:13 AM
ABBAS KHAN . J
ABBAS KHAN . J - avatar
+ 1
The LEFT JOIN returns all rows from the table on the left with the matching rows in the table on the right. The result is NULL in the right side when there is no match. An example would be Customers and their orders. You want to pull all the customers (left table) and any orders in the (right table). The result would be all customers and any orders they may have on record.
27th Feb 2017, 10:45 PM
Jason E. Johnson
Jason E. Johnson - avatar