Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Joins and different types of joins dani

385 views

Published on

  • Be the first to comment

  • Be the first to like this

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

×