Re: Re: Untitled

From Social Lizard, 10 Months ago, written in Plain Text, viewed 148 times. This paste is a reply to Re: Untitled from Little Human - view diff
URL http://codebin.org/view/8991447d Embed
Download Paste or View Raw
  1. SELECT DISTINCT EXTRACT(YEAR FROM CAST(i.invoice_date AS date)) AS year_of_invoice,
  2.         COUNT(t.name)
  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: Re: Untitled"

Here you can reply to the paste above