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
Leave a Reply