Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id EEF4B9FB2D8 for ; Thu, 19 Oct 2006 11:17:56 -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 41855-04 for ; Thu, 19 Oct 2006 11:17:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by postgresql.org (Postfix) with ESMTP id 26C809FB278 for ; Thu, 19 Oct 2006 11:17:42 -0300 (ADT) Received: from [194.25.154.138] (helo=webserv.wug.de) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1GaYiH2PGX-0004Qz; Thu, 19 Oct 2006 16:17:38 +0200 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1GaYiG-0006SS-00 for pgsql-sql@postgresql.org; Thu, 19 Oct 2006 16:17:36 +0200 Date: Thu, 19 Oct 2006 16:17:36 +0200 From: "A. Kretschmer" To: pgsql-sql@postgresql.org Subject: Re: Grouping by day, limiting amounts Message-ID: <20061019141736.GD10803@a-kretschmer.de> References: <20061019123018.GC10803@a-kretschmer.de> <20061019135541.9836.qmail@web54303.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061019135541.9836.qmail@web54303.mail.yahoo.com> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! User-Agent: Mutt/1.5.9i X-Provags-ID: kundenserver.de abuse@kundenserver.de login:51ea9561fc3f6d9539a2acd743e4748c X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.326 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS X-Spam-Level: X-Archive-Number: 200610/177 X-Sequence-Number: 26566 am Thu, dem 19.10.2006, um 6:55:41 -0700 mailte chester c young folgendes: > --- "A. Kretschmer" wrote: > > > > I would like to select the 3 (or 10) names with the most votes for > > each day. > > > > > > Any suggestions on how can it be done easily? > > Am I misunderstanding, or can you write a simple: > > select * from where ='2006-10-10' > limit 5 order by desc;