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.

demo-queries-from slides-02.sql 352B

12345678910111213
  1. SELECT invoice_number, invoice_date, invoice_total
  2. FROM invoices JOIN vendors
  3. ON invoices.vendor_id = vendors.vendor_id
  4. WHERE vendor_state = 'CA'
  5. ORDER BY invoice_date;
  6. SELECT invoice_number, invoice_date, invoice_total
  7. FROM invoices
  8. WHERE vendor_id IN
  9. (SELECT vendor_id
  10. FROM vendors
  11. WHERE vendor_state = 'CA')
  12. ORDER BY invoice_date;