beowulf1416

Untitled

Jul 28th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. select
  2. a.broadcast_id,
  3. surb.user_id,
  4. su.email
  5. from (
  6. select
  7. dc.broadcast_id,
  8. count(*) count_broadcast_id
  9. from data_content dc
  10. where is_deleted = 0
  11. group by dc.broadcast_id
  12. ) a
  13. inner join sys_user_resource_broadcast surb on surb.broadcast_id = a.broadcast_id
  14. inner join sys_user su on su.id = surb.user_id
  15. where count_broadcast_id > 1;
Advertisement
Add Comment
Please, Sign In to add comment