X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id E7F919FB262 for ; Thu, 7 Sep 2006 11:02:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 92190-05-3 for ; Thu, 7 Sep 2006 14:02:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by postgresql.org (Postfix) with ESMTP id E5DAE9FB2BD for ; Thu, 7 Sep 2006 11:01:44 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id d80so330955pyd for ; Thu, 07 Sep 2006 07:01:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=iS/578JXZ5fdCkxijPyUDKa3DUiEv+YyiYBfnE60n4EBVciIOgwWNNTxRrOSx6yAIfiWWJzZEPrEtKao9bM4bNkoaWmpC8t/YV4QUt1bttxGF7JZHgk5sL0TUXxx4GN4+biK0t5RDAhVaF14Wq5kLqd3gYOPVe0a4VXWslaGZ6Q= Received: by 10.35.22.17 with SMTP id z17mr740800pyi; Thu, 07 Sep 2006 07:01:42 -0700 (PDT) Received: by 10.35.80.9 with HTTP; Thu, 7 Sep 2006 07:01:41 -0700 (PDT) Message-ID: Date: Thu, 7 Sep 2006 09:01:41 -0500 From: "Aaron Bono" To: "Dinesh Tiwari" Subject: Re: Query regarding to MS reporting services (Grand total problem) Cc: pgsql-sql@postgresql.org In-Reply-To: <20060906053019.15339.qmail@web36402.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_23863_15965045.1157637701676" References: <20060906053019.15339.qmail@web36402.mail.mud.yahoo.com> X-Google-Sender-Auth: d1658943f4e6ec8c X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.696 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, HTML_40_50, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/48 X-Sequence-Number: 26259 ------=_Part_23863_15965045.1157637701676 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/6/06, Dinesh Tiwari wrote: > > Hi, > I have a problem reagarding Grand Total in the table footer. > I am showing only top 10 seeling for each department in report but i want > sum of whole table seelings in table footer. not only 10 sellings which are > shown in report. I want the sum of all 40 thousand rows. > How i can do it. > If any one have idea about this please help me. > Thanks in advance. > In general I would recommend you run two separate queries - one for the report and another for the footer - and then union the two. ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------=_Part_23863_15965045.1157637701676 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/6/06, Dinesh Tiwari <tiwaridinesh22@yahoo.com> wrote:
Hi,
I have a problem reagarding Grand Total in the table footer.
I am showing only top 10 seeling for each department in report but i want sum of whole table seelings in table footer. not only 10 sellings which are shown in report. I want the sum of all 40 thousand rows.
  How i can do it.
If any one have idea about this please help me.
Thanks in advance.

 
In general I would recommend you run two separate queries - one for the report and another for the footer - and then union the two.

==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
================================================================== ------=_Part_23863_15965045.1157637701676--