Untitled

From Harmless Owl, 3 Months ago, written in Plain Text, viewed 50 times.
URL http://codebin.org/view/d04b0d12 Embed
Download Paste or View Raw
  1. SELECT SUM(total), COUNT(DISTINCT(customer_id)), SUM(total)/COUNT(DISTINCT(customer_id))
  2. FROM invoice
  3. WHERE billing_country = 'USA'
  4. GROUP BY customer_id;

Reply to "Untitled"

Here you can reply to the paste above