View Single Post
Join Date: Feb 2008
Posts: 36
Reputation: huangzhi is an unknown quantity at this point 
Solved Threads: 12
huangzhi huangzhi is offline Offline
Light Poster

Re: Need help in getting Average using SQL Cross Tab

 
0
  #2
Dec 27th, 2008
Make it subquery like below:

  1. SELECT [Year], [Month], sum([Benefits Rating]) AS [Benefits Rating], sum([Facilities Rating]) AS [Facilities Rating]
  2. FROM (...... your origin query ......) X
  3. GROUP BY [Year], [Month]
Hence Wijaya
www.ex-Soft.tk
Reply With Quote