Advertisement
Guest User

Untitled

a guest
Jul 28th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. IIf([Column1]=0,[Column2],[Column1])
  2.  
  3. select case
  4. when TABLE1.[COLUMN1]=0 then TABLE1.[COLUMN2]
  5. else TABLE1.[COLUMN1]
  6. end as SomeColumn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement