The real problem is the GROUPING SETS. The averages are computed based on the grouping. I'll have to think about this some other time. It's 02:10 here and I've gotta get some shuteye.
--Jeff Moden
Change is inevitable... Change for the better is not.