Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. SELECT @Setting = COALESCE((CASE
  2. WHEN @capName = 'role1'
  3. AND .....?
  4. THEN 1
  5. ELSE 0
  6. END), 1)
  7. FROM table1 t
  8. WHERE t.accountId = 'nameA'
  9. AND t.capName IN ('role1','role2')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement