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.

exer_5C18.sql 323B

1234567891011
  1. USE ex;
  2. SELECT 'Active' AS source, invoice_number, invoice_date, invoice_total
  3. FROM active_invoices
  4. WHERE invoice_date >= '2018_06_01'
  5. UNION
  6. SELECT 'Paid' AS source, invoice_number, invoice_date, invoice_total
  7. FROM paid_invoices
  8. WHERE invoice_date >= '2018_06_01'
  9. ORDER BY invoice_total DESC;
  10. /* union