Advertisement
tko_pb

get role

Jan 31st, 2021
1,509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. select au.value as username, au.description as user, ar.name as role from ad_role ar
  2. left join AD_User_Roles aur on ar.ad_role_id = aur.ad_role_id
  3. left join ad_user au on aur.ad_user_id = au.ad_user_id
  4. where ar.name in (
  5. 'AOI User Payment Kasir',
  6. 'AOI User AP',
  7. 'AOI User AP 2',
  8. 'AOI User Accessories Receipt',
  9. 'AOI PPC Subcont User')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement