From: | Philip Warner <pjw(at)rhyme(dot)com(dot)au> |
---|---|
To: | Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Help on (sub)-select |
Date: | 2002-12-20 15:53:25 |
Message-ID: | 5.1.0.14.0.20021221025235.03c5c490@mail.rhyme.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
At 11:48 AM 20/12/2002 +0000, Gary Stainburn wrote:
> > select r.*, count(*) from roster r, roster_staff s
> > where rsdate = rodate and rsgid = rogid and rsgsid = rogid
> > group by r.*
>
>This one came up with a parser error near '*' but I don't understand it
>enough
>to debug it.
Replace the two occurrences of r.* with the list of fields in r that you
want to group the count by.
----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 03 5330 3172 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Kowalczyk | 2002-12-20 19:36:16 | SQL select count(*) from "myTable" failed : Relation "mytable" does not exist |
Previous Message | Gary Stainburn | 2002-12-20 11:48:24 | Re: Help on (sub)-select |