What is wrong with the following code
I am trying to calculate commissions based on an existing column and loading into a temp table, when I run the query, it gives me an error saying - Invalid column name 'Multiplier'.
SELECT *, Multiplier =
Case PRODUCTNAME
When 'Voice' then 2.4
When 'Cable' then 4.8
Else 1
END,
Multiplier * COMP_RATE as Commission
into #CommissionsFTMJul18
FROM [DBPO_TRANS].[dbo].[CREDITS]