Re: GROUP BY / HAVING - am I being thick? - Mailing list pgsql-sql

From Andrew C.R. Martin
Subject Re: GROUP BY / HAVING - am I being thick?
Date
Msg-id 00041316540301.04663@sapc13.rdg.ac.uk
Whole thread Raw
In response to GROUP BY / HAVING - am I being thick?  ("Andrew C.R. Martin" <a.c.r.martin@reading.ac.uk>)
List pgsql-sql

> I have a question about GROUP BY / HAVING. It seems I can't do
> something I *think* I should be able to do!
[...]
> SELECT codon, sum(nexamples)
> FROM summary
> WHERE expl = 'f'
> GROUP BY codon
> HAVING expl = 'f';

OK! As I thought, I was being thick - helps to read the book properly instead
of dipping into it. Thanks Tom for clearing this up!


Andrew

--
Dr. Andrew C.R. Martin          EMail:  a.c.r.martin@reading.ac.uk  (work)
Lecturer in Bioinformatics              andrew@stagleys.demon.co.uk (home)
University of Reading
Tel.: +44 (0)118 987 5123x7022  Fax:    +44 (0)118 931 0180


pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: GROUP BY / HAVING - am I being thick?
Next
From: Thomas Lockhart
Date:
Subject: [Fwd: [HACKERS] Porting reports (cont'd)]