ערכתי לאחרונה בתאריך 26.09.22 בשעה 13:51 בברכה, Pascual
Hey, it's important to understnad to which dialect your data terminal is set to.
could be set to postgres, mysql, snowflake etc.. CASE statement is the equivalent to IF in many sql dialects.
the most frequent one when talking in sql is
CASE
WHEN X then Y
WHEN Z then G
WHEN A then B
ELSE K
END
as 'CaseColumnName'
this is as if i would write:
IF
X THEN Y
ELSEIF Z THEN G
ELSEIF A THEN B
ELSE K
END
as 'IfColumnName'
@Mobiwan@