RE: [HACKERS] HAVING bug - Mailing list pgsql-hackers

From Taral
Subject RE: [HACKERS] HAVING bug
Date
Msg-id 000001bdfb83$681c13c0$3b291f0a@taral
Whole thread Raw
In response to Re: [HACKERS] HAVING bug  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
> prova=>  select sno,qty  from sp  group by sno,qty having qty=300;
> ERROR:  This is not a valid having query!

Use WHERE for conditions like this.

SELECT sno, qty FROM sp WHERE qty=300 GROUP BY sno;

Taral


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Re[2]: [HACKERS] using indexes
Next
From: Egon Schmid
Date:
Subject: Re: [HACKERS] cvs problem ?