pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Marlowe <smarlowe@g2switchworks.com>
Cc: Greg Stark <gsstark@mit.edu>
Cc: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Rick Schumeyer <rschumeyer@ieee.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: pg, mysql comparison with "group by" clause
Date: Thu, 13 Oct 2005 14:49:37 -0400
Message-ID: <24789.1129229377@sss.pgh.pa.us> (raw)
In-Reply-To: <1129228672.29961.214.camel@state.g2switchworks.com>
References: <001001c5cea8$77cabc90$0300a8c0@dell8200>
	<20051011142658.C54076@megazone.bigpanda.com>
	<87br1u1jvq.fsf@stark.xeocode.com>
	<1129155875.29961.168.camel@state.g2switchworks.com>
	<87zmpez0au.fsf@stark.xeocode.com>
	<1129219046.29961.184.camel@state.g2switchworks.com>
	<878xwxi87h.fsf@stark.xeocode.com>
	<1129228672.29961.214.camel@state.g2switchworks.com>

>>>> In standard SQL you have to
>>>> write GROUP BY ... and list every single column you need from the master
>>>> table.

This thread seems to have gone off on a tangent that depends on the
assumption that the above is a correct statement.  It's not.  It *was*
true, in SQL92, but SQL99 lets you omit unnecessary GROUP BY columns.

The gripe against mysql, I think, is that they don't enforce the
conditions that guarantee the query will give a unique result.

The gripe against postgres is that we haven't implemented the SQL99
semantics yet.

			regards, tom lane



view thread (28+ messages)  latest in thread

Message-ID: <24789.1129229377@sss.pgh.pa.us>
Permalink:  ../24789.1129229377@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24789.1129229377@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, smarlowe@g2switchworks.com, gsstark@mit.edu, sszabo@megazone.bigpanda.com, rschumeyer@ieee.org
  Subject: Re: pg, mysql comparison with "group by" clause
  In-Reply-To: <24789.1129229377@sss.pgh.pa.us>

* 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