Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Sequences and group by
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