Guest User

Untitled

a guest
Jul 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. select
  2. ins.res_id, ins.res_type, wki.inst_id, ins.uid
  3. from
  4. wkf_workitem wki
  5. JOIN wkf_instance ins ON ins.id = wki.inst_id
  6. group by
  7. inst_id, ins.res_id, ins.res_type, ins.uid
  8. having
  9. count(*) > 1
  10. ;
Add Comment
Please, Sign In to add comment