Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.27 KB | None | 0 0
  1. SELECT au.auser_id, au.name, au.email, COUNT(eo.record_id) AS apps
  2. FROM est_object eo
  3. JOIN auser au ON eo.auser_id = au.auser_id
  4. WHERE au.is_published = 1 AND au.is_profi_paket = 1 AND eo.is_published = 1 AND eo.is_import = 0
  5. GROUP BY au.auser_id
  6. ORDER BY apps DESC
  7. limit 20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement