Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
docu...
Joins and different types of joins in
SQL
Sarbazali.N
sarbazalin@gmail.com
Sarbaz Ali
twitter.com/username
in.linkedin.com...
What is sql join?
A SQL join clause combines records from
two or more tables in a database.
Sql joins
o INNER JOIN
o FULL OUTER JOIN
o RIGHT OUTER JOIN
o LEFT OUTER JOIN
INNER JOIN
The INNER JOIN keyword returns rows when there is
at least one match in both tables.
SYNTAX:-
SELECT column_nam...
FULL OUTER JOIN
The FULL JOIN keyword return rows when there
is a match in one of the tables.
SYNTAX:-
SELECT column_name(...
RIGHT OUTER JOIN
The RIGHT JOIN keyword returns all the rows from
the right table (table_name2), even if there are no
matc...
LEFT OUTER JOIN
The LEFT JOIN keyword returns all rows from the left table
(table_name1), even if there are no matches in ...
If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.co...
Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, N...
Joins and different types of joins in sql
Upcoming SlideShare
Loading in …5
×

Joins and different types of joins in sql

936 views
809 views

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
936
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
55
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Joins and different types of joins in sql

  1. 1. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  2. 2. Joins and different types of joins in SQL Sarbazali.N sarbazalin@gmail.com Sarbaz Ali twitter.com/username in.linkedin.com/in/profilena me 9037896770
  3. 3. What is sql join? A SQL join clause combines records from two or more tables in a database.
  4. 4. Sql joins o INNER JOIN o FULL OUTER JOIN o RIGHT OUTER JOIN o LEFT OUTER JOIN
  5. 5. INNER JOIN The INNER JOIN keyword returns rows when there is at least one match in both tables. SYNTAX:- SELECT column_name(s) FROM table_name1 INNER JOIN table_name2 ON table_name1.column_name=table_name2.column_name
  6. 6. FULL OUTER JOIN The FULL JOIN keyword return rows when there is a match in one of the tables. SYNTAX:- SELECT column_name(s) FROM table_name1 FULL JOIN table_name2 ON table_name1.column_name=table_name2.colum n_name;
  7. 7. RIGHT OUTER JOIN The RIGHT JOIN keyword returns all the rows from the right table (table_name2), even if there are no matches in the left table (table_name1). SYNTAX:- SELECT column_name(s) FROM table_name1 RIGHT JOIN table_name2 ON table_name1.column_name=table_name2.column_n ame
  8. 8. LEFT OUTER JOIN The LEFT JOIN keyword returns all rows from the left table (table_name1), even if there are no matches in the right table (table_name2). SYNTAX:- SELECT column_name(s) FROM table_name1 LEFT JOIN table_name2 ON table_name1.column_name=table_name2.column_name
  9. 9. If this presentation helped you, please visit our page facebook.com/baabtra and like it. Thanks in advance. www.baabtra.com | www.massbaab.com |www.baabte.com
  10. 10. Contact Us Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com

×