Hello all, I need some help in changing from a CASE statement to an IF statement. Below is the CASE statement that needs changing.
I'm trying to use the SQL Enterprise Manager and it seems to not like CASE statements.
Thanks all!!!
CASE
WHEN [BookLine].[FirstNumber] = [BookLine].[LastNumber] THEN [BookLine].[FirstNumber]
ELSE [BookLine].[FirstNumber] + ' - ' + [BookLine].[LastNumber]
I'm trying to use the SQL Enterprise Manager and it seems to not like CASE statements.
Thanks all!!!
CASE
WHEN [BookLine].[FirstNumber] = [BookLine].[LastNumber] THEN [BookLine].[FirstNumber]
ELSE [BookLine].[FirstNumber] + ' - ' + [BookLine].[LastNumber]