- SELECT billing_country,
- COUNT(billing_postal_code)
- FROM invoice
- WHERE billing_postal_code IS NULL
- AND billing_address LIKE '%Street%'
- OR billing_address LIKE '%Way%'
- OR billing_address LIKE '%Road%'
- OR billing_address LIKE '%Drive%'
- GROUP BY billing_country
- HAVING COUNT(*)-COUNT(billing_postal_code) > 10;
Re: task 2
From Commodious Pheasant, 9 Months ago, written in Plain Text, viewed 304 times.
This paste is a reply to task 2 from Ilya
- view diff
URL http://codebin.org/view/10acdd44
Embed
Download Paste or View Raw
— Expand Paste to full width of browser