From: Kaloyan Iliev Iliev <news1@faith.digsys.bg>
To: Michael Fuhr <mike@fuhr.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: Problems with HAVING
Date: Wed, 12 Jan 2005 20:40:51 +0200
Message-ID: <41E56F33.8020208@faith.digsys.bg> (raw)
In-Reply-To: <20050112174130.GA95306@winnie.fuhr.org>
References: <41E5529B.9030609@faith.digsys.bg>
<20050112171121.GA94838@winnie.fuhr.org>
<20050112174130.GA95306@winnie.fuhr.org>
Thank You,
That's what I need. I know it was something simple but...
Now it works perfectly.
Thank's again.
Kaloyan Iliev
Michael Fuhr wrote:
>On Wed, Jan 12, 2005 at 10:11:21AM -0700, Michael Fuhr wrote:
>
>
>>On Wed, Jan 12, 2005 at 06:38:51PM +0200, Kaloyan Iliev Iliev wrote:
>>
>>
>>
>>>My problem is that I want to select the row with max(date) but also
>>>limited with where clauses.
>>>
>>>
>>If you don't mind using a non-standard feature then try SELECT
>>DISTINCT ON (not just DISTINCT, but DISTINCT ON):
>>
>>
>
>Sorry, I probably didn't read your message closely enough. If you
>just want a single record then ORDER BY ... LIMIT 1 might be more
>appropriate.
>
>
>
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: news1@faith.digsys.bg, mike@fuhr.org
Subject: Re: Problems with HAVING
In-Reply-To: <41E56F33.8020208@faith.digsys.bg>
* 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