The code for join_three.sql is: SELECT orderNumber, orderDate, orderLineNumber, productName, quantityOrdered, priceEach, quantityOrdered * priceEach as subtotal FROM orders INNER JOIN orderdetails USING (orderNumber) INNER JOIN products USING (productCode) ORDER BY orderNumber, orderLineNumber;