RE: [HACKERS] HAVING bug

From: "Taral" <taral(at)mail(dot)utexas(dot)edu>
To: <sferac(at)bo(dot)nettuno(dot)it>
Cc: <pgsql-bugs(at)postgreSQL(dot)org>, <pgsql-hackers(at)postgreSQL(dot)org>
Subject: RE: [HACKERS] HAVING bug
Date: 1998-10-19 17:10:44
Message-ID: 000001bdfb83$681c13c0$3b291f0a@taral
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Egon Schmid 1998-10-19 17:12:46 Re: [HACKERS] cvs problem ?
Previous Message Bruce Momjian 1998-10-19 17:07:13 Re: Re[2]: [HACKERS] using indexes