InterviewSolution
Saved Bookmarks
| 1. |
What's the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN? |
Answer»
For INNER joins, the order doesn't matter. The queries will return the same results, as long as we change your selects from SELECT * to SELECT a.*, b.*, c.*. For (LEFT, RIGHT or FULL) OUTER joins, YES, the order matters. First, outer joins are not COMMUTATIVE, so a LEFT JOIN b is not the same as b LEFT JOIN a |
|