In SQL Server if I have an AND
statement with 2 conditions
case when x>0 and y>5 then
do something.
If first x>0
condition if false, is it going to execute the second condition
or it would stop at the first one since for "and" statement both conditions need to be true in order for the whole statement to be true.
select case when (ord_qty > 5 and shipped_qty > 1) then 'partially_shipped' else 'in_process' end as order_status
from order