Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> numbering a column according to group
HELP! Anyone SQL gurus out there please help me with a query update to
a table:
I need to update a column in a table sequentially base on the date and group by the customer number and the order item with data as such:
cust_no, order_item, order_date column_to_update
111 AAA 01/20/02 1 111 AAA 08/20/02 2 111 AAA 12/20/02 3 333 AAA 01/15/02 1 333 AAA 03/26/02 2 555 BBB 01/06/02 1 555 BBB 03/06/02 2 555 BBB 04/26/02 3 555 BBB 05/26/02 4
I only have oracle 8.1.7 Standard edition: so no analytical feature.
Thanks in advanced. Received on Wed Jul 09 2003 - 23:35:06 CDT
![]() |
![]() |