Re: subtotal on a matrix

From: Adam Machanic (amachanic_at_hotmail._removetoemail_.com)
Date: 01/25/05


Date: Tue, 25 Jan 2005 09:32:33 -0500

Look up the topic ROLLUP Operator in BOL.

-- 
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--
"offa via SQLMonster.com" <forum@SQLMonster.com> wrote in message
news:264b1fd49f4c4188ab218c39cb3479fc@SQLMonster.com...
> i have this matrix report that looks like that :
>
>               Type1           Type2
>           Count   Time    Count   Time
> Zone1       2      20.5     3      20
> Zone2       23     40       25     35
> Zone3       11     40.5     23     13.3
>
> i would like to sutotal the columns "Count" and "Time" for each type, but
i cant seem to get the grouping right so i could subtotal the of each
column. is there a way to do this?
> thanx in advance
>
> -- 
> Message posted via http://www.sqlmonster.com


Relevant Pages

  • Re: "disallowed construct" on indexed view
    ... Please see the examples in the "Creating Indexed Views" topic in BOL. ... The SUM() point is valid, and without seeing the DDL we can't know whether ... "Jacco Schalkwijk" wrote ... > SQL Server MVP ...
    (microsoft.public.sqlserver.programming)
  • RE: Indexes, primary keys constraint type from sysconstraints -table?
    ... together with OBJECTPROPERTY and ... COLUMNPROPERTY ... Look those up in BOL. ... Mike Epprecht, Microsoft SQL Server MVP ...
    (microsoft.public.sqlserver.clients)
  • Re: Programatically assigning database object permissions using TSQL
    ... SQL Server MVP ... "RobGT" wrote in message ... > (likely to be more down to my searching than BOL). ... > I want to write TSQL code that will grant/deny any or all permissions on ...
    (microsoft.public.sqlserver.programming)
  • Re: Regarding Transaction Log
    ... ALTER DATABASE ........(see BOL) ... > Since it is in production, ... >> Why are you using full recovery mode? ... >> Tibor Karaszi, SQL Server MVP ...
    (microsoft.public.sqlserver.server)

Loading