HOW TO USE INNER JOIN IN SQL?

520 viewsSQLSQL
0

HOW TO USE INNER JOIN IN SQL?

Saraswat World Changed status to publish June 8, 2023
0
INNER JOIN in SQL
INNER JOIN in SQL

INNER JOINย clause select all the records from both the tables when there are the values matching between the specified columns.

Syntax of INNER JOIN in SQL-

SELECTย <column_name(s)>

FROMย <table1>

INNER JOIN<table2>ย ONย <table1.column_name=table2.column_name>

WHERE<condition>;

Example of INNER JOIN in SQL-

SELECTย Orders.OrderID, Customers.CustomerName

FROMย Orders

INNER JOINย Customers

ONย Orders.CustomerID = Customers.CustomerID;

โ€“Records in the Orders table that donโ€™t have matches in the Customers table, then these orders will not be selected.

Saraswat World Changed status to publish June 8, 2023
Write your answer.

Posted

in

Tags:

Comments

Leave a Reply

Ganesh Ji Arti A Tribute to Dilip Kumar