From: Philip Warner <pjw@rhyme.com.au>
To: Gary Stainburn <gary.stainburn@ringways.co.uk>
To: pgsql-sql@postgresql.org
Subject: Re: Help on (sub)-select
Date: Sat, 21 Dec 2002 02:53:25 +1100
Message-ID: <5.1.0.14.0.20021221025235.03c5c490@mail.rhyme.com.au> (raw)
In-Reply-To: <200212201148.24013.gary.stainburn@ringways.co.uk>
References: <5.1.0.14.0.20021220214822.02d7e360@mail.rhyme.com.au>
<5.1.0.14.0.20021220214822.02d7e360@mail.rhyme.com.au>
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 |/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: pjw@rhyme.com.au, gary.stainburn@ringways.co.uk
Subject: Re: Help on (sub)-select
In-Reply-To: <5.1.0.14.0.20021221025235.03c5c490@mail.rhyme.com.au>
References: <5.1.0.14.0.20021220214822.02d7e360@mail.rhyme.com.au> <5.1.0.14.0.20021221025235.03c5c490@mail.rhyme.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox