I'm getting the error Incorrect syntax near '='.
when I use the following case statement in a view. Obviously I'm not an expert on MS SQL, but I'm curious as to why I am allowed to use the '=' sign in a preceeding statement but not in the THEN section.
Help me understand what I'm doing wrong (beside everything) :cheesy:
CASE
WHEN
MBAL.ALCUCD = '1' AND -- ADDRESS CODE
MABL.ALE2ST = '1' -- ADDRESS TYPE
THEN
MBDE.DEB9CD = 'NULL' AND
'B' AS ADDRESS_TYPE
END