SyntaxFix
Write A Post
Hire A Developer
Questions
Why not just do something like:
CASE WHEN ROUND(MY_FIELD,0)=MY_FIELD THEN CAST(MY_FIELD AS INT) ELSE MY_FIELD END as MY_FIELD2