Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3334976
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:57:52+00:00 2026-05-17T23:57:52+00:00

I am trying to understand joins and im a bit confused. I know how

  • 0

I am trying to understand joins and im a bit confused. I know how to join tables using

=
<=

IN
exists and not exists

I was trying to try and understand the use of INNER JOIN, LEFT OUTER JOIN, USING etc but it is so confusing. The major problem i am having is that different people refer to them using different names. Is there a simple explanation of the different types of joins and what other names they are known as. For example, while googling i came across the following types

♦ Simple Join
♦ Equi join
♦ Natural Join
♦ Outer Join
♦ Self Join
♦ Cartesian join
♦ Inner join
♦ Nonequi join
♦ Theta join
♦ Self join 
♦ Cross join
♦ Cross Joins
♦ Natural Joins
♦ Inner Join with USING Clause
♦ Inner Join with ON Clause
♦ Left Outer Join
♦ Right Outer Join
♦ Full OuterJoin

The majority of the above are duplicates, i.e. its the same type of join but with a different name. I am sure all the above can be recreated using one of (=, !=, not in, in exists etc) but I am struggling to undestand which is which and the difference between them. A diagram would probably help 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:57:52+00:00Added an answer on May 17, 2026 at 11:57 pm

    For some of the ones that weren’t explained by Matthew’s post:

    Simple Join – A non explicit join, it defaults to an inner join

    a join b on a.id = b.id
    

    Natural Join – This does an inner join on all columns with the same name

    a natural join b
    

    Self Join – This is joining a table to itself, it can any other type of join (inner self join, outer self join, etc)

    a "a1" join a "a2" on "a1".id = "a2".id
    

    Cartesian join – This is every possible combination of rows, you’ll always end up with the product of the number of rows from both tables. You do it with an inner join without specifying a join condition

    a join b
    

    Cross join – This is a synonym for a Cartesian join

    Inner Join with USING Clause – This is an alternate syntax for join conditions, you can use it if both tables have matching column names

    a join b using (id)
    

    Inner Join with ON Clause – This is the same as what I showed for a simple join, the only other syntax is to join in the where clause (as below)

    a join b where a.id = b.id
    

    Left Outer Join – Same as a left join
    Right Outer Join – Same as a right join. It’s like a left join, but you get nulls on the first table rather than the second one

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm trying to understand how SQL Server makes use of indexes on tables
I am trying to understand the difference between LEFT JOIN and LEFT JOIN FETCH
I'm trying to understand how to rewrite a join query in LINQ. SELECT cs.qid,cs.qk
Trying to understand Ruby a bit better, I ran into this code surfing the
Im trying to understand how class generics work and this bit just doesnt make
I am trying to understand how JOINS work on SQL Server 2000 and 2005
I've been having quite a few problems trying to use Microsoft.SqlServer.Types.SqlGeography . I know
I'm trying to understand why people use a wrap function for my event handlers.
I have been trying to understand joins for a while now, I've noticed quite
I'm kinda new to concurrent programming, and trying to understand the benefits of using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.