0% found this document useful (0 votes)
23 views7 pages

Types of Merge Queries in SQL

Uploaded by

saroj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views7 pages

Types of Merge Queries in SQL

Uploaded by

saroj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Types of merge queries

• Left outer – Duplicate entry


• Right outer – Unique entry
• Full outer- all rows from First table and
Unique rows from second.
• Inner join
• Left anti join
• Right anti join
Left outer- left outer join, which keeps all
the rows from the left table and brings in
any matching rows from the right table
Right outer join -right outer join, which
keeps all the rows from the right table
and brings in any matching rows from
the left table.
Full outer join
-full outer join, which brings in all the
rows from both the left and right tables.
Inner join - inner join, which brings in
only matching rows from both the left
and right tables.
Left anti join - left anti join, which brings in only rows from the
left table that don't have any matching rows from the right
table
Right anti join -right anti join, which brings in only rows from
the right table that don't have any matching rows from the left
table.

You might also like