Joins and different types of joins dani

366 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
366
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Joins and different types of joins dani

  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 Mohammed Danish dani3250@gmail.com www.facebook.com/dani325 0 twitter.com/DANI3250 in.linkedin.com/in/mohamm eddanish 9895825222
  3. 3. Joins • SQL joins are used to query data from two or more tables, based on a relationship between certain columns in these tables.
  4. 4. Different SQL Joins • JOIN: Return rows when there is at least one match in both tables • LEFT JOIN: Return all rows from the left table, even if there are no matches in the right table • RIGHT JOIN: Return all rows from the right table, even if there are no matches in the left table • FULL JOIN: Return rows when there is a match in one of the tables
  5. 5. Example
  6. 6. SQL LEFT JOIN • The LEFT JOIN returns all rows from the left table(table_name1),even if there are no matches in the right table(table_name2)
  7. 7. Example
  8. 8. SQL RIGHT JOIN • The RIGHT JOIN return all rows from the right table(table_name2),even if there are no matches in the left table(table_name1).
  9. 9. SQL FULL JOIN • The FULL JOIN returns rows when there is a match in one of the tables
  10. 10. 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
  11. 11. 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
  12. 12. THANKS

×