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: Sequences and group by

Re: Sequences and group by

From: Carlos <miotromailcarlos_at_netscape.net>
Date: 24 Apr 2007 00:11:08 -0700
Message-ID: <1177398668.205256.298170@s33g2000prh.googlegroups.com>


On 24 abr, 07:53, klaus1 <klaus.s..._at_gmail.com> wrote:
> hi!
>
> I try to use a select statement whit an myseq.nextval, but I need an
> group by at the end of the select.
>
> select myseq.nextval, a, b, c from table
> groupby a, b, c;
>
> doesn't run.
> anyone any idea?
> thanks,
> Klaus

select myseq.nextval, a, b, c

   from (select a, b, c

             from table
   group by a, b, c)

HTH. Cheers.

Carlos. Received on Tue Apr 24 2007 - 02:11:08 CDT

Original text of this message

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