Question : sql average syntax

I am trying to return an average amount for the month by JobNum on three columns generated by this query:
Select VP_TOTALS.APPLYDATE As Dates, VP_TOTALS.LABORLEVELDSC2 As DepartmentNam,VP_TOTALS.LABORLEVELNAME2 As [DepartmentNum],
  VP_TOTALS.LABORLEVELDSC3 As JobNam,VP_TOTALS.LABORLEVELNAME3 As [JobNum], VP_TOTALS.TIMEINSECONDS / 3600 As Hours,
     CASE
        WHEN VP_TOTALS.PAYCODENAME = 'Regular' THEN VP_TOTALS.WAGEAMOUNT ELSE 0 end As RegWages,
        case WHEN VP_TOTALS.PAYCODENAME = 'Overtime' THEN VP_TOTALS.WAGEAMOUNT Else 0 end As OvertimeWages,
        case WHEN VP_TOTALS.PAYCODENAME = 'Holwrkd' THEN VP_TOTALS.WAGEAMOUNT ELSE 0 end As HolwrkdWages
From VP_TOTALS
Where (VP_TOTALS.APPLYDATE >= Convert(DateTime,'2009-01-01 00:00:00',102) And
  VP_TOTALS.APPLYDATE <= Convert(DateTime,'2009-01-31 00:00:00',102)) And
  VP_TOTALS.LABORACCTID > 0
Group By VP_TOTALS.LABORLEVELNAME3,VP_TOTALS.APPLYDATE, VP_TOTALS.LABORLEVELDSC2, VP_TOTALS.LABORLEVELDSC3, VP_TOTALS.LABORLEVELNAME2, VP_TOTALS.TIMEINSECONDS, VP_TOTALS.WAGEAMOUNT,VP_TOTALS.PAYCODENAME
order by VP_TOTALS.LABORLEVELNAME3

How can I return only one JobNum for each Job number with an average for the month amount for the three columns RegWages, OvertimeWages and Holwrkdwages?

Can someone please help ?

Answer : sql average syntax

You did not write what to do with VP_TOTALS.TIMEINSECONDS, so I'veremoved it.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
Select 
  MONTH(VP_TOTALS.APPLYDATE) As DateMonth, 
  VP_TOTALS.LABORLEVELDSC2 As DepartmentNam,
  VP_TOTALS.LABORLEVELNAME2 As [DepartmentNum],
  VP_TOTALS.LABORLEVELDSC3 As JobNam,
  VP_TOTALS.LABORLEVELNAME3 As [JobNum], 
  AVG(CASE WHEN VP_TOTALS.PAYCODENAME = 'Regular' THEN VP_TOTALS.WAGEAMOUNT ELSE null END) As AvgRegWages, 
  AVG(CASE WHEN VP_TOTALS.PAYCODENAME = 'Overtime' THEN VP_TOTALS.WAGEAMOUNT ELSE null END) As AvgOvertimeWages,
  AVG(CASE WHEN VP_TOTALS.PAYCODENAME = 'Holwrkd' THEN VP_TOTALS.WAGEAMOUNT ELSE null END) As AvgHolwrkdWages
From VP_TOTALS
Where (VP_TOTALS.APPLYDATE >= Convert(DateTime,'2009-01-01 00:00:00',102) And
  VP_TOTALS.APPLYDATE <= Convert(DateTime,'2009-01-31 00:00:00',102)) And
  VP_TOTALS.LABORACCTID > 0
Group By 
  VP_TOTALS.LABORLEVELNAME3,
  MONTH(VP_TOTALS.APPLYDATE), 
  VP_TOTALS.LABORLEVELDSC2, 
  VP_TOTALS.LABORLEVELDSC3, 
  VP_TOTALS.LABORLEVELNAME2 
order by VP_TOTALS.LABORLEVELNAME3
Random Solutions  
 
programming4us programming4us