• Skip to main content
  • Skip to primary sidebar

Ryan McCormick

What is the difference between LEFT, RIGHT, INNER and OUTER JOIN?

June 27, 2013 by Ryan Leave a Comment

I have been working with a lot of SQL lately. I wouldn’t label myself an expert, but I have been finding my way around a lot easier the more I work with it.

I have been working a lot with normalizing data and writing queries that reference multiple tables. When referencing multiple tables, it is common to write a join. Here is a very small overview that explains the difference between Left, Right, Inner and Outer Join:

Join and Inner Join
Only show records that are common to both tables. Whether the records are common is determined by the fields in join clause
Left Join and Left Outer Join
Show all records from left table regardless of the existance of matching records in the right table.
Right Join and Right Outer Join
Show all records from the “RIGHT” table and only matching records from the first or “LEFT” Table.

Filed Under: Microsoft Access Tagged With: difference between left right inner and outer join

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Force Quit Kill all Chrome Windows MacOS
  • SOLVED: Angular 6 CLI Karma Stuck in Single Run | Karma Stops Running
  • How to Manually Install Java 8 on Ubuntu 18.04 LTS
  • Remove VirtualBox from Ubuntu 16.04 Xenial
  • Clear all Node Modules Folders Recursively Mac/Linux

Recent Comments

  1. KKV on Webstorm adding spaces between imports and braces | JavaScript and TypeScript
  2. jusopi on Clear all Node Modules Folders Recursively Mac/Linux
  3. Qaisar Irfan on Clear all Node Modules Folders Recursively Mac/Linux
  4. mustafa on Remove VirtualBox from Ubuntu 16.04 Xenial
  5. Pourya on How to Manually Install Java 8 on Ubuntu 18.04 LTS

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in