Nexus Archive

The JOIN Picture

Its easy to visualize both the LEFT and RIGHT joins.

<LEFT TABLE> [ JOIN ] <RIGHT TABLE>

Now depending on the JOIN we get either everything from left or right table.

<LEFT TABLE> [ LEFT JOIN ] <RIGHT TABLE>
    ^                            ^
    |                            |  
    |                            |
Get everything              Get only matching
from here.                  values from here.
<LEFT TABLE> [ RIGHT JOIN ] <RIGHT TABLE>
    ^                            ^
    |                            |  
    |                            |
Get only matching          Get everything
values from here.          from here.

That's the Idea ! 💡


Follow Full Join to continue from here.

Browse Full SQL Page.

#SQL on the go