Advertisement
valeksan

s03t09e03

Nov 15th, 2023
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PostgreSQL 0.35 KB | Source Code | 0 0
  1. SELECT billing_country AS country,
  2.         COUNT(billing_postal_code IS NULL) AS miss
  3. FROM invoice
  4. WHERE billing_address NOT LIKE '%Street%'
  5.         AND billing_address NOT LIKE '%Way%'
  6.         AND billing_address NOT LIKE '%Road%'
  7.         AND billing_address NOT LIKE '%Drive%'
  8. GROUP BY billing_country
  9. HAVING COUNT(billing_postal_code IS NULL) > 10;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement