By : Dhirendra Chauhan
SQL Join
Join
A JOIN clause is used to combine rows
from two or more tables, based on a
related column between them.
Types of SQL JOINs
1. Equi- Join
2. Non-Equi- Join
3. Natural Join
4. Cross Join
5. Left Join
6. Right Join
7. Full Join
8. Self Join
Equi JOIN
EQUI JOIN performs a JOIN against equality or matching column(s)
values of the associated tables. An equal sign (=) is used as comparison
operator in the where clause to refer equality.
Syntax
SELECT column_list
FROM table1 , table2....
WHERE table1.column_name = table2.column_name;
Table-1 Table-2
2. SALARY
1.EMPLOYEE
Non-Equi JOIN
The NON EQUI JOIN uses comparison operator instead of the
equal sign like >, <, >=, <= along with conditions.
Syntax
SELECT column_list
FROM table1 , table2....
WHERE table1.column_name != table2.column_name;
Table-1 Table-2
2. SALARY
1.EMPLOYEE
Natural JOIN
The NON EQUI JOIN uses comparison operator instead of the
equal sign like >, <, >=, <= along with conditions.
Syntax
SELECT column_list
FROM table1 Natural Join table2;
2. SALARY
1.EMPLOYEE
CROSS JOIN
The CROSS JOIN clause returns the Cartesian product
of rows from the joined tables.
Syntax
SELECT *
FROM table1 CROSS JOIN table2;
2. SALARY
1.EMPLOYEE
INNER JOIN
Syntax:
SELECT column_name(s)
FROM table1
Inner JOIN table2
ON table1.column_name = table2.column_name;
The INNER JOIN keyword selects records that have
matching values in both tables.
2. SALARY
1.EMPLOYEE
LEFT JOIN
The LEFT JOIN keyword returns all records from the left table
(table1), and the matched records from the right table (table2).
The result is NULL from the right side, if there is no match.
Syntax
SELECT column_name(s)
FROM table1
Left JOIN table2
ON table1.column_name = table2.column_name;
Table-2
Table-1
2. SALARY
1.EMPLOYEE
RIGHT JOIN
The RIGHT JOIN keyword returns all records from the right table (table2),
and the matched records from the left table (table1). The result is NULL
from the left side, when there is no match.
Syntax:
SELECT column_name(s)
FROM table1
RIGHT JOIN table2
ON table1.column_name = table2.column_name;
Table-1 Table-2
1. SALARY 2.EMPLOYEE
FULL JOIN
MySQL does not support FULL JOIN, so you have to combine
JOIN, UNION and LEFT JOIN to get an equivalent.
SELF JOIN
“A self JOIN is a regular join, but the table is
joined with itself.”
Syntax:
SELECT column_name / *
FROM table1 t1, table1 t2
Where Condition;
T1 and T2 are different table aliases for the same table.
Table-1 Table-1
T1 T2
Alias
V19 join method-c
V19 join method-c
THANK
YOU

More Related Content

PPTX
joins and subqueries in big data analysis
PPTX
Joins And Its Types
PPSX
Join query
PPT
Types Of Join In Sql Server - Join With Example In Sql Server
PPT
Sql join
PPTX
MS Sql Server: Joining Databases
PPT
Join sql
joins and subqueries in big data analysis
Joins And Its Types
Join query
Types Of Join In Sql Server - Join With Example In Sql Server
Sql join
MS Sql Server: Joining Databases
Join sql

What's hot (20)

PPT
Sql joins
PPTX
joins in database
PPTX
Oracle: Joins
PPT
MS excel functions
PPTX
MySQL JOIN & UNION
PDF
VLOOKUP Function - Marelen Talavera - Vivacious Analytic
PPTX
SQL JOINS- Reena P V
PPTX
How to use Hlookup find an exact match
DOCX
Ms excel formulas
PDF
How to Use VLOOKUP in Excel
PPTX
PDF
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,match
PDF
Excel Training for SEOs
PPTX
Sql joins
PPTX
Ms excel formula
PDF
using excel 2013 as a power user
PPTX
Training presentation vlookup - what it is, and when to use it
PPT
Microsoft Excel VLOOKUP Function
PPTX
Vlookup - an introduction
PPTX
VLOOKUP HLOOKUP INDEX MATCH
Sql joins
joins in database
Oracle: Joins
MS excel functions
MySQL JOIN & UNION
VLOOKUP Function - Marelen Talavera - Vivacious Analytic
SQL JOINS- Reena P V
How to use Hlookup find an exact match
Ms excel formulas
How to Use VLOOKUP in Excel
On if,countif,countifs,sumif,countifs,lookup,v lookup,index,match
Excel Training for SEOs
Sql joins
Ms excel formula
using excel 2013 as a power user
Training presentation vlookup - what it is, and when to use it
Microsoft Excel VLOOKUP Function
Vlookup - an introduction
VLOOKUP HLOOKUP INDEX MATCH
Ad

Similar to V19 join method-c (20)

PPTX
Joining
PPTX
JOINS.pptx
PPTX
Kailas Manoj SQL Joins.pptxhgvhhhbjgjjjjjgjgjjj
PDF
Kailas Manoj SQL Joins.pdfhvhggjbhbbjbjbbjbj
PPTX
sqljoins-220527115331-828e9932 (dee1).pptx
PPTX
database .pptx
PPTX
Sql joins inner join self join outer joins
PPTX
Join in SQL - Inner, Self, Outer Join
PPTX
types of SQL Joins
PPTX
SQL Joins.pptx
PPTX
Joins in SQL
PPTX
SQL Server Joins.pptx the concept of joins in the oracle and mysql in dbms
PPTX
SQL JOIN.pptx
PPTX
Sql joins
PPTX
PPTX
SQL JOIN
PDF
PDF
Advance database system(part 8)
Joining
JOINS.pptx
Kailas Manoj SQL Joins.pptxhgvhhhbjgjjjjjgjgjjj
Kailas Manoj SQL Joins.pdfhvhggjbhbbjbjbbjbj
sqljoins-220527115331-828e9932 (dee1).pptx
database .pptx
Sql joins inner join self join outer joins
Join in SQL - Inner, Self, Outer Join
types of SQL Joins
SQL Joins.pptx
Joins in SQL
SQL Server Joins.pptx the concept of joins in the oracle and mysql in dbms
SQL JOIN.pptx
Sql joins
SQL JOIN
Advance database system(part 8)
Ad

More from Dhirendra Chauhan (20)

PPTX
V35 keys-c
PPTX
V34 numeric function-c
PPTX
V33 date function-c
PPTX
V31 having
PPTX
V30 full join(union intersect etc)
PPTX
V29 group by-c
PPTX
PPTX
V27 constraint
PPTX
PPTX
V25 sql index
PPTX
V24 cartesion product-c
PPTX
V23 function-2
PPTX
V22 function-1
PPTX
V21 in operator
PPTX
V20 bet ween operator-c
PPTX
V18 alias-c
PPTX
V17 show command-c
PPTX
V16 sql comments-c
PPTX
V15 like operator-c
PPTX
V3 employment-unemployment
V35 keys-c
V34 numeric function-c
V33 date function-c
V31 having
V30 full join(union intersect etc)
V29 group by-c
V27 constraint
V25 sql index
V24 cartesion product-c
V23 function-2
V22 function-1
V21 in operator
V20 bet ween operator-c
V18 alias-c
V17 show command-c
V16 sql comments-c
V15 like operator-c
V3 employment-unemployment

Recently uploaded (20)

PDF
1.Salivary gland disease.pdf 3.Bleeding and Clotting Disorders.pdf important
PDF
Literature_Review_methods_ BRACU_MKT426 course material
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
CRP102_SAGALASSOS_Final_Projects_2025.pdf
PPTX
Module on health assessment of CHN. pptx
PDF
plant tissues class 6-7 mcqs chatgpt.pdf
PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
Climate and Adaptation MCQs class 7 from chatgpt
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
My India Quiz Book_20210205121199924.pdf
PPTX
Climate Change and Its Global Impact.pptx
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
PDF
HVAC Specification 2024 according to central public works department
PPT
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
PDF
Compact First Student's Book Cambridge Official
PDF
English Textual Question & Ans (12th Class).pdf
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PPTX
What’s under the hood: Parsing standardized learning content for AI
1.Salivary gland disease.pdf 3.Bleeding and Clotting Disorders.pdf important
Literature_Review_methods_ BRACU_MKT426 course material
AI-driven educational solutions for real-life interventions in the Philippine...
CRP102_SAGALASSOS_Final_Projects_2025.pdf
Module on health assessment of CHN. pptx
plant tissues class 6-7 mcqs chatgpt.pdf
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
Climate and Adaptation MCQs class 7 from chatgpt
Journal of Dental Science - UDMY (2021).pdf
Environmental Education MCQ BD2EE - Share Source.pdf
Core Concepts of Personalized Learning and Virtual Learning Environments
My India Quiz Book_20210205121199924.pdf
Climate Change and Its Global Impact.pptx
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
HVAC Specification 2024 according to central public works department
REGULATION OF RESPIRATION lecture note 200L [Autosaved]-1-1.ppt
Compact First Student's Book Cambridge Official
English Textual Question & Ans (12th Class).pdf
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
What’s under the hood: Parsing standardized learning content for AI

V19 join method-c

  • 1. By : Dhirendra Chauhan
  • 3. Join A JOIN clause is used to combine rows from two or more tables, based on a related column between them.
  • 4. Types of SQL JOINs 1. Equi- Join 2. Non-Equi- Join 3. Natural Join 4. Cross Join 5. Left Join 6. Right Join 7. Full Join 8. Self Join
  • 5. Equi JOIN EQUI JOIN performs a JOIN against equality or matching column(s) values of the associated tables. An equal sign (=) is used as comparison operator in the where clause to refer equality. Syntax SELECT column_list FROM table1 , table2.... WHERE table1.column_name = table2.column_name;
  • 8. Non-Equi JOIN The NON EQUI JOIN uses comparison operator instead of the equal sign like >, <, >=, <= along with conditions. Syntax SELECT column_list FROM table1 , table2.... WHERE table1.column_name != table2.column_name;
  • 11. Natural JOIN The NON EQUI JOIN uses comparison operator instead of the equal sign like >, <, >=, <= along with conditions. Syntax SELECT column_list FROM table1 Natural Join table2;
  • 13. CROSS JOIN The CROSS JOIN clause returns the Cartesian product of rows from the joined tables. Syntax SELECT * FROM table1 CROSS JOIN table2;
  • 15. INNER JOIN Syntax: SELECT column_name(s) FROM table1 Inner JOIN table2 ON table1.column_name = table2.column_name; The INNER JOIN keyword selects records that have matching values in both tables.
  • 17. LEFT JOIN The LEFT JOIN keyword returns all records from the left table (table1), and the matched records from the right table (table2). The result is NULL from the right side, if there is no match. Syntax SELECT column_name(s) FROM table1 Left JOIN table2 ON table1.column_name = table2.column_name;
  • 20. RIGHT JOIN The RIGHT JOIN keyword returns all records from the right table (table2), and the matched records from the left table (table1). The result is NULL from the left side, when there is no match. Syntax: SELECT column_name(s) FROM table1 RIGHT JOIN table2 ON table1.column_name = table2.column_name;
  • 23. FULL JOIN MySQL does not support FULL JOIN, so you have to combine JOIN, UNION and LEFT JOIN to get an equivalent.
  • 24. SELF JOIN “A self JOIN is a regular join, but the table is joined with itself.” Syntax: SELECT column_name / * FROM table1 t1, table1 t2 Where Condition; T1 and T2 are different table aliases for the same table.