SET @Result = @KriteriumTekst +
CASE @Operator
WHEN 'LT' THEN '<'
WHEN 'GT' THEN '>'
WHEN 'NE' THEN '<>'
WHEN 'EQ' THEN '='
+ @Verdi +
CASE @Tilstand
WHEN 'OG' THEN 'AND'
WHEN 'ELLER' THEN 'OR'
This statement is not compiling, what could be the issue.
You are miising the
ENDof theCASEexpressions: