You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Exercise_2.4.sql 393B

1234567891011121314151617
  1. SELECT
  2. c.last_name,
  3. c.first_name,
  4. o.order_date,
  5. p.product_name,
  6. oi.item_price,
  7. oi.discount_amount,
  8. oi.quantity
  9. FROM
  10. customers c
  11. JOIN
  12. orders o ON c.customer_id = o.customer_id
  13. JOIN
  14. order_items oi ON o.order_id = oi.order_id
  15. JOIN
  16. products p ON oi.product_id = p.product_id
  17. ORDER BY c.last_name , o.order_date , p.product_name;