Re: [HACKERS] Re: [SQL] MAX() of 0 records.
Philip Warner <pjw@rhyme.com.au>
From: Philip Warner <pjw@rhyme.com.au>
To: Tom Lane <tgl@sss.pgh.pa.us>, Paul McGarry <paulm@opentec.com.au>, pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org
Date: 2000-07-10T00:24:30Z
Lists: pgsql-bugs, pgsql-hackers
At 14:35 9/07/00 -0400, Tom Lane wrote:
>
>so the construct is definitely not SQL-compliant. Maybe we should just
>forbid it. However, if you are joining against another table (which
>itself is not an SQL feature) then it seems like there is some potential
>use in it. What do people think of my implicit-GROUP-BY-ctid idea?
>That would basically say that the aggregate is computed over all the
>tuples that join to a single target tuple.
Sounds perfect to me...
----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.C.N. 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/