Re: group by clause ordering
- From: DA Morgan <damorgan@xxxxxxxxx>
- Date: Fri, 27 Apr 2007 07:40:59 -0700
Thorsten Kettner wrote:
On 27 Apr., 11:32, Gints Plivna <gints.pli...@xxxxxxxxx> wrote:Marie, no, it is not possible to get other resulting rows by onlyYea. But things start to differ of course if you are using for example
changing the group by order. You get the same groupings, no matter if
you group by a first and then by b or vice versa. And as all
aggregation (min, max, count, ...) is done per group, you definitely
get the same result rows.
rollup, because then subsums are calculated for group by clause
starting from right to left.
Good point. Rollup had totally slipped my mind
Not mine which is why I didn't want to answer without seeing a real
SQL statement. Among the variations are:
CUBE
GROUP_ID
GROUPING
GROUPING SETS
ROLLUP
--
Daniel A. Morgan
University of Washington
damorgan@xxxxxxxxxxxxxxxx
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
.
- References:
- group by clause ordering
- From: mariegriffiths
- Re: group by clause ordering
- From: DA Morgan
- Re: group by clause ordering
- From: Thorsten Kettner
- Re: group by clause ordering
- From: Gints Plivna
- Re: group by clause ordering
- From: Thorsten Kettner
- group by clause ordering
- Prev by Date: Re: Help - "Business Day" Problem
- Next by Date: Re: retrieving the location of a database trigger call..
- Previous by thread: Re: group by clause ordering
- Next by thread: Simple Cursor
- Index(es):
Relevant Pages
|