Question : Sql case syntax

I've been messing with the following query until i'm going nuts. The current error is 'syntax error near '=' .
Select VP_TOTALS.APPLYDATE As Dates, VP_TOTALS.LABORLEVELNAME2 As [Desc 1],
  VP_TOTALS.LABORLEVELNAME3 As [Desc 2], VP_TOTALS.TIMEINSECONDS / 3600 As Hours,VP_TOTALS.WAGEAMOUNT =
     CASE
        WHEN VP_TOTALS.PAYCODENAME = 'Regular' THEN VP_TOTALS.WAGEAMOUNT As Wages
        WHEN VP_TOTALS.PAYCODENAME = 'Overtime' THEN VP_TOTALS.WAGEAMOUNT As Overtime
        WHEN VP_TOTALS.PAYCODENAME = 'Holwrkd' THEN VP_TOTALS.WAGEAMOUNT As Holwrkd
     END
From VP_TOTALS
Order By VP_TOTALS.APPLYDATE

Please tell me where I have gone wrong. The results of this TSQL 2000 query are going to be imported into Excel if that makes any difference.

Answer : Sql case syntax

Select VP_TOTALS.APPLYDATE As Dates, VP_TOTALS.LABORLEVELNAME2 As [Desc 1],
VP_TOTALS.LABORLEVELNAME3 As [Desc 2], VP_TOTALS.TIMEINSECONDS / 3600 As Hours,
CASE
WHEN VP_TOTALS.PAYCODENAME = 'Regular' THEN VP_TOTALS.WAGEAMOUNT ELSE 0 end As Wages,
case  WHEN VP_TOTALS.PAYCODENAME = 'Overtime' THEN VP_TOTALS.WAGEAMOUNT ELSE 0 end As Overtime,
case  WHEN VP_TOTALS.PAYCODENAME = 'Holwrkd' THEN VP_TOTALS.WAGEAMOUNT ELSE 0 end As Holwrkd

From VP_TOTALS
Order By VP_TOTALS.APPLYDATE
Random Solutions  
 
programming4us programming4us