X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id AA9949FCDB1 for ; Mon, 28 Aug 2006 05:09:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 28656-08 for ; Mon, 28 Aug 2006 05:09:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx-2.sollentuna.net (mx-2.sollentuna.net [195.84.163.199]) by postgresql.org (Postfix) with ESMTP id 717DA9FCDB0 for ; Mon, 28 Aug 2006 05:09:05 -0300 (ADT) Received: from ALGOL.sollentuna.se (janus.sollentuna.se [62.65.68.67]) by mx-2.sollentuna.net (Postfix) with ESMTP id 2F92EF40F2; Mon, 28 Aug 2006 10:09:03 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: Re: hi ........i have a query related to MS reporting services Date: Mon, 28 Aug 2006 10:09:03 +0200 Message-ID: <6BCB9D8A16AC4241919521715F4D8BCEA355C9@algol.sollentuna.se> In-Reply-To: <20060828074723.545.qmail@web36405.mail.mud.yahoo.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] hi ........i have a query related to MS reporting services Thread-Index: AcbKdzlzGOBpA8zrSo+3paydHXjlhwAAeU9Q References: <20060828074723.545.qmail@web36405.mail.mud.yahoo.com> From: "Magnus Hagander" To: "Dinesh Tiwari" , X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.183 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/213 X-Sequence-Number: 26171 > HI to all of you. I am a new member of this group and this is my > first mail in this group.I am working in MS Reporting services.And > i am new in this job. >=20 > I have a problem. > There is a table which has many columns. > and i have to give selection to client that he can select any top > 10,25,500,1000, sales by departmentment there are more than 10 > department and he want to see top ten seelings in each department. > How i can do it. > without using top 10 syntax iin query. > i dont have to use top 10 sales from table syntax. > so please help me. Take a look at LIMIT. http://www.postgresql.org/docs/8.1/interactive/queries-limit.html //Magnus