sas - SQL case when behaves like if else if -
when write sql case when statement(s), function if, if ,..if logic or if, else-if , else-if, else logic?
i.e if condition matches case #1, still evaluate other cases?
any self-respecting database short circuit, didn't mention database using. so, try it: select case when 1=1 1 else 1/0 end , see.
Comments
Post a Comment