Re: Problems with HAVING

From: Kaloyan Iliev Iliev <news1(at)faith(dot)digsys(dot)bg>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problems with HAVING
Date: 2005-01-12 18:40:51
Message-ID: 41E56F33.8020208@faith.digsys.bg
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.
>
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Edmund Bacon 2005-01-12 18:46:53 Re: Problems with Quotes
Previous Message Kaloyan Iliev Iliev 2005-01-12 18:39:17 Re: Problems with HAVING