dbTalk Databases Forums  

Grouping by aggregates in SQL

comp.databases.theory comp.databases.theory


Discuss Grouping by aggregates in SQL in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roy Hann
 
Posts: n/a

Default Grouping by aggregates in SQL - 04-27-2009 , 06:33 AM






c.d.t. is the wrong forum to ask this question, but I reckon it's a
good place to find folk who've Got a Clue (tm). :-)

Which SQL dialects have you encountered that support aggregates in the
GROUP BY clause?

That's not something I'd ever have tried if I hadn't just seen it being
tried. I take little interest the SQL standards and stopped studying
anything post SQL92, but every once in a while I stub my toe on
something and have to switch on the lights whether I like it or not.

--
Roy



Reply With Quote
  #2  
Old   
Tegiri Nenashi
 
Posts: n/a

Default Re: Grouping by aggregates in SQL - 04-27-2009 , 10:08 AM






On Apr 27, 4:33*am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:
Quote:
c.d.t. is the wrong forum to ask this question, but I reckon it's a
good place to find folk who've Got a Clue (tm). *:-)

Which SQL dialects have you encountered that support aggregates in the
GROUP BY clause? *
In 99% of the cases the content of the GROUP BY clause is
unambiguously defined by what a user wrote in the SELECT clause. The
other 1% is covered by the inline view facility. Why do you need
aggregates in the GROUP BY clause?



Reply With Quote
  #3  
Old   
Roy Hann
 
Posts: n/a

Default Re: Grouping by aggregates in SQL - 04-27-2009 , 10:50 AM



Tegiri Nenashi wrote:

Quote:
On Apr 27, 4:33*am, Roy Hann <specia... (AT) processed (DOT) almost.meat> wrote:
c.d.t. is the wrong forum to ask this question, but I reckon it's a
good place to find folk who've Got a Clue (tm). *:-)

Which SQL dialects have you encountered that support aggregates in the
GROUP BY clause? *

In 99% of the cases the content of the GROUP BY clause is
unambiguously defined by what a user wrote in the SELECT clause. The
other 1% is covered by the inline view facility. Why do you need
aggregates in the GROUP BY clause?
Just to be absolutely clear on this, I *don't* want aggregates in
the GROUP BY clause. SQL is nasty enough already.

I have been looking at a piece of software that I would like to port to
a DBMS that doesn't support aggregates in the GROUP BY, and I am
curious whether that is a widely supported feature.

--
Roy



Reply With Quote
  #4  
Old   
cimode@hotmail.com
 
Posts: n/a

Default Re: Grouping by aggregates in SQL - 04-27-2009 , 02:19 PM



<<Snipped>>
and I am
Quote:
curious whether that is a widely supported feature.
It is on most SQL DBMS: Oracle, DB2, SQL Server.(3 out of 4 DBMS
systems on the market).

Hope this helps...

Quote:
Roy


Reply With Quote
  #5  
Old   
Roy Hann
 
Posts: n/a

Default Re: Grouping by aggregates in SQL - 04-27-2009 , 04:11 PM



cimode (AT) hotmail (DOT) com wrote:

Quote:
Snipped
and I am
curious whether that is a widely supported feature.
It is on most SQL DBMS: Oracle, DB2, SQL Server.(3 out of 4 DBMS
systems on the market).

Hope this helps...
Well it answers the question anyway. Thanks.

--
Roy



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.