Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.30 KB | None | 0 0
  1. select concat('https://', au.name, '.est.ua/') as link, count(eo.record_id) as apps
  2. from auser au
  3. join est_object eo on au.auser_id = eo.auser_id and eo.is_published = 1 and eo.is_import = 0
  4. where au.is_published = 1 and au.is_profi_paket = 0
  5. group by 1
  6. having apps >= 10
  7. order by apps desc
  8. limit 500
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement