March 25, 2003 01:25 PM

Detailed Aggregates

COMPUTE and COMPUTE BY: an excellent alternative for detailed reporting
Rating: (0)
SQL Server Magazine
InstantDoc ID #38150
In discussing what isn’t allowed within a view (as I did in my February column "Viewer Advisory," InstantDoc ID 37660), I'm often asked about the importance of COMPUTE and COMPUTE BY clauses. These aren't allowed within a view’s definition, yet they're important clauses to understand for detailed reporting. For summarizing data, many people use only GROUP BY when COMPUTE BY might be a better alternative. I’m partial to COMPUTE and COMPUTE BY, so I always take a minute to explai...

...This article is for paid Professional Members only.

Already a Professional Member? Please log in now:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Professional Membership

Monthly

Annual

VIP Membership

Monthly

Annual

Add a Comment

I loved the way the T-SQL was presented at ever increasing complexity with an excellent description.
Came away with an excellent understanding of how and where to apply Compute and Compute by.

ingebme 11/16/2005 1:03:26 AM


Paragraph 2 of the article states: "..you can cownload the Computeby Examples.sql commented script file at InstantDoc ID 38150." 38150 is the InstantDoc ID for the same article, and I am unable to find any means to access the script file. Can you help?

Justin Randall 6/3/2003 7:13:44 AM


You must log on before posting a comment.

Are you a new visitor? Register Here