From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-sql@postgresql.org
Subject: Re: Grouping by day, limiting amounts
Date: Thu, 19 Oct 2006 16:17:36 +0200
Message-ID: <20061019141736.GD10803@a-kretschmer.de> (raw)
In-Reply-To: <20061019135541.9836.qmail@web54303.mail.yahoo.com>
References: <20061019123018.GC10803@a-kretschmer.de>
<20061019135541.9836.qmail@web54303.mail.yahoo.com>
am Thu, dem 19.10.2006, um 6:55:41 -0700 mailte chester c young folgendes:
> --- "A. Kretschmer" <andreas.kretschmer@schollglas.com> 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 <table> where <date>='2006-10-10'
> limit 5 order by <vote_ct> desc;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: andreas.kretschmer@schollglas.com
Subject: Re: Grouping by day, limiting amounts
In-Reply-To: <20061019141736.GD10803@a-kretschmer.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox