SQL Joins — A Simple Guide

Joshua Otwell
Level Up Coding
Published in
8 min readAug 11, 2021

--

If you are working with SQL relational databases, at some point you are going to use JOINs. Normalized data is organized and spread across multiple tables, oftentimes linked by a common column key (or multiple keys). We use JOINs to bring the data together. Therefore JOINs are an important concept to grasp. There are SQL JOIN articles and guides across the internet far and wide and I am adding one more into the mix…

Self-Promotion:

If you enjoy the content written here, by all means, share this blog and your favorite post(s) with others who may benefit from or like it as well. Since coffee is my favorite drink, you can even buy me one if you would like!

I am using Oracle SQL for the example JOIN queries in this post. The SQL implementation you are using should have comparable JOINs. However, all SQL databases are not exactly the same so be sure and consult the documentation for your vendor for any specific questions or clarification.

The example queries for this post are derived from the 2 tables shown below. They are both super simple in structure and design, each containing a single NUMBER column named NUM_COL with INTEGER values:

--

--

SQL | PHP | Photography. Sign-up for my free developer newsletter, OpenLampTech, here: openlamptech.substack.com