Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Seqence Number Automation?
Hi I'm trying to generate a summary table with a new field sum_id which
should be generated whenever there's a new record. I thought of using
sequence number but I found it can't be used with GROUP BY clause like this:
select my_seq.NEXTVAL, sum(col),number from table group by number;
![]() |
![]() |