top of page

MySQL JOINS

Updated: Apr 5, 2024

MySQL JOINS are used with SELECT statement. It is used to retrieve data from multiple tables. It is performed whenever you need to fetch records from two or more tables.


There are three types of MySQL joins:

  1. MySQL Inner Join (called Simple join)

  2. MySQL Outer Join (called Left join)

  3. MySQL Right Join (called Right join)


MySQL Inner Join (Simple join):


It is used to return all rows from multiple tables where the join condition is satisfied. It is the most common type of join.


Syntax:

ree

SELECT columns

FROM table1

INNER JOIN table2

ON table1.column = table2.column;



MySQL Left Outer Join:


The Left Outer join returns all rows from the left hand table specified in the ON condition and only those rows from other table where the join condition is fulfilled.


Syntax:

ree

SELECT columns

FROM table1

LEFT [OUTER] JOIN table2

ON table1.column = table2.column;



MySQL Right Outer Join:


The Right Outer Join returns all rows from the right hand table specified in the ON condition and only those rows from the other table where the join condition is fulfilled.


ree

Syntax:

SELECT columns

FROM table1

RIGHT [OUTER] JOIN table2

ON table1.column = table2.column;




 
 
 

Recent Posts

See All

Comments


MiIT Logo

Company

Contact Us

905-487-4880 

5160 Explorer Dr #34, Mississauga,ON L4W 4T7

646-713-5711

4466 Buttonwood Ln Lilburn, GA 30047

262 Chapman Rd, STE 240 Newark DE 19702

Stay up to date on the latest from MiIT

  • Instagram
  • Facebook
  • http://linkedin.com/company/miittechnologies/about/
  • Whatsapp

© All Content MiIT Technologies Inc.2019 - 2025. All rights reserved.

bottom of page