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-07.sql 255B

123456789
  1. SELECT vendor_name, invoice_number,
  2. invoice_date, invoice_total
  3. FROM invoices i JOIN vendors v
  4. ON i.vendor_id = v.vendor_id
  5. WHERE invoice_date =
  6. (SELECT MIN(invoice_date)
  7. FROM invoices
  8. WHERE vendor_id = i.vendor_id)
  9. ORDER BY vendor_name