Re: Untitled

From Gamboge Leopard, 9 Months ago, written in Plain Text, viewed 142 times. This paste is a reply to Untitled from Edgy Crane - view diff
URL Embed
Download Paste or View Raw
  1. SELECT DISTINCT EXTRACT(YEAR FROM CAST(i.invoice_date AS date)) AS year_of_invoice,
  2.        COUNT(
  3. FROM invoice AS i
  4. LEFT OUTER JOIN invoice_line AS il ON i.invoice_id = il.invoice_id
  5. LEFT OUTER JOIN track AS t ON il.track_id = t.track_id
  6. GROUP BY year_of_invoice;

Reply to "Re: Untitled"

Here you can reply to the paste above