SQLite INNER JOIN Keyword
INNER JOIN
INNER JOIN returns the records that have matching values in both tables.

This example selects all the orders, with the customer name:
Example
SELECT Orders.OrderID, Customers.CustomerName
FROM Orders
INNER JOIN Customers
ON Orders.CustomerID = Customers.CustomerID;
Try it Yourself »
JOIN or INNER JOIN
JOIN and INNER JOIN mean the same. INNER is the default:
Example
SELECT Orders.OrderID, Customers.CustomerName
FROM Orders
JOIN Customers
ON Orders.CustomerID = Customers.CustomerID;
Try it Yourself »
USING
When the two columns have the same name, you can write USING instead of ON:
Example
SELECT OrderID, CustomerName
FROM Orders
JOIN Customers USING (CustomerID);
Try it Yourself »
Join Three Tables
This example selects all the orders, with the customer name and the name of the shipper:
Example
SELECT Orders.OrderID, Customers.CustomerName,
Shippers.ShipperName
FROM Orders
JOIN Customers
ON Orders.CustomerID = Customers.CustomerID
JOIN Shippers
ON Orders.ShipperID = Shippers.ShipperID;
Try it Yourself »