Re: NOT HAVING clause? - Mailing list pgsql-general

From Alban Hertroys
Subject Re: NOT HAVING clause?
Date
Msg-id 43D62B45.1020206@magproductions.nl
Whole thread Raw
In response to Re: NOT HAVING clause?  (Richard Huxton <dev@archonet.com>)
Responses Re: NOT HAVING clause?  (Will Glynn <wglynn@freedomhealthcare.org>)
List pgsql-general
Richard Huxton wrote:
> Alban Hertroys wrote:
> You're mixing up WHERE and HAVING. The WHERE clause applies to the
> individual rows before GROUP BY. The HAVING applies to the output of the
> GROUP BY stage.

Ah, of course, now it makes sense. Combined with Csaba's reply my
original problem has vaporized. Thank you guys :)

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
    7500 AK Enschede

//Showing your Vision to the World//

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: NOT HAVING clause?
Next
From: Tony Caduto
Date:
Subject: Re: Does this look ethical to you?