Guest User

Untitled

a guest
Mar 13th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. Select tab_users.USER
  2. from tab_users , tab_grants , tab_roles r
  3. where tab_users.user_id = tab_grants.user_id(+)
  4. and tab_grants.role_id = tab_roles.role_id(+)
  5. group by tab_users.USER
  6. having sum(decode(tab_roles.name,'Техподдержка',1,0)) = 0
Add Comment
Please, Sign In to add comment