Created
March 27, 2017 08:44
-
-
Save Haruki/a4aff65b760d8b322a168e875c35ce09 to your computer and use it in GitHub Desktop.
case in sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select has.id HAS_ID, | |
htf.id HTF_ID, | |
htfbew.halmv_id HAS_MSN_ID, | |
case | |
when htfbew.bew = 1 and hv.bew_von is not null and hv.bew_bis is not null then | |
1 | |
else | |
0 | |
end HTF_BEW, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment