Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. CASE
  2. WHEN attribute1 = 1 THEN 'Apple'
  3. WHEN attribute2 = 0 THEN 'Grape'
  4. WHEN attribute3 >= 0 THEN 'Pear'
  5. END
  6.  
  7. CASE WHEN attribute1 = 1 THEN 'Apple|' ELSE '' END
  8. || CASE WHEN attribute2 = 0 THEN 'Grape|' ELSE '' END
  9. || CASE WHEN attribute3 >= 0 THEN 'Pear|' ELSE '' END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement