JOIN IN DBMS
SQL JOIN
• In DBMS, a join statement is mainly used to combine multiple tables based on a specified
common field between them.
• JOIN Keyword is used in SQL queries for joining.
• SQL Join is used to fetch data from two or more tables.
TYPES OF JOIN
1. Left Join
2. Right Join
3. Inner Join
4. Full Outer Join
INNER JOIN
• Inner Join is a type of join that can be used to return all the data that have matching values in both
the tables.
• It is the most widely used join operation.
• Syntax:
EXAMPLE OF INNER JOIN
#ID Name
101 Sunder Pichai
102 Bill Gates
103 Elon Musk
104 Steve Job
105 Tim Cock
#ID Address
102 Washington
103 Pretoria
104 California
105 Alabama
106 New York
Name Address
#ID Name Address
102 Bill Gates Washington
103 Elon Musk Pretoria
104 Steve Job California
105 Tim Cock Alabama
Query
Result
THANK YOU!

JOIN in DBMS.pptx

  • 1.
  • 2.
    SQL JOIN • InDBMS, a join statement is mainly used to combine multiple tables based on a specified common field between them. • JOIN Keyword is used in SQL queries for joining. • SQL Join is used to fetch data from two or more tables.
  • 3.
    TYPES OF JOIN 1.Left Join 2. Right Join 3. Inner Join 4. Full Outer Join
  • 4.
    INNER JOIN • InnerJoin is a type of join that can be used to return all the data that have matching values in both the tables. • It is the most widely used join operation. • Syntax:
  • 5.
    EXAMPLE OF INNERJOIN #ID Name 101 Sunder Pichai 102 Bill Gates 103 Elon Musk 104 Steve Job 105 Tim Cock #ID Address 102 Washington 103 Pretoria 104 California 105 Alabama 106 New York Name Address
  • 6.
    #ID Name Address 102Bill Gates Washington 103 Elon Musk Pretoria 104 Steve Job California 105 Tim Cock Alabama Query Result
  • 7.