I want to cast the output of a case statement, but I havne't been able to get the syntax correct.
cast(case when abckey like 'star%' then abckey else '' end as char(5)) as as STATUS
3706: Syntax error: expected something between '(' and the 'case' keyword.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.