Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Creating sequence for group by in a query?

Re: Creating sequence for group by in a query?

From: Gints Plivna <gints.plivna_at_gmail.com>
Date: 29 Jun 2006 15:06:07 -0700
Message-ID: <1151618767.732919.144060@b68g2000cwa.googlegroups.com>


> Well, in actuality, yes, this is what I want, but the problem is that
> the "GROUP" column needs to be unique (it's a key)

Yea BTW in your example it definitely wasn't unique. If you need unique then use row_number instead (of course it starts from 1 every time) or read about other analytic functions in data warehousing guide.

Gints Plivna
http://www.gplivna.eu/ Received on Thu Jun 29 2006 - 17:06:07 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US