How to select data from multiple tables

How to code an inner join

The explicit syntax for an inner join

      SELECT select_list 
      FROM table_1 
      [INNER] JOIN table_2 ON join_condition_1 
      [[INNER] JOIN table_3 ON join_condition_2]...
      

A SELECT statement that joins the customers and orders tables

      SELECT firstName, lastName, orderDate 
      FROM customers 
      INNER JOIN orders ON customers.customerID = orders.customerID 
      ORDER BY orderDate;
      
join tables image

Description

Back