creating sequence for a group
Posted: Tue Jan 19, 2010 9:38 pm
Hi,
I have a requirement to create sequence numbers for each group
I have the following columns in the input
Col1-Col2-Col3-Col4
1111-2222-3333-444
1111-2222-3333-444
1111-2222-3333-444
1111-2222-3333-555
1111-2222-3333-555
So,
I have two groups now
One is
1111-2222-3333-444
The next is
1111-2222-3333-555
I want the output as
Col1-Col2-Col3-Col4-Seq
1111-2222-3333-444-1
1111-2222-3333-444-2
1111-2222-3333-444-3
1111-2222-3333-555-1
1111-2222-3333-555-2
How can i achieve this.
I have a requirement to create sequence numbers for each group
I have the following columns in the input
Col1-Col2-Col3-Col4
1111-2222-3333-444
1111-2222-3333-444
1111-2222-3333-444
1111-2222-3333-555
1111-2222-3333-555
So,
I have two groups now
One is
1111-2222-3333-444
The next is
1111-2222-3333-555
I want the output as
Col1-Col2-Col3-Col4-Seq
1111-2222-3333-444-1
1111-2222-3333-444-2
1111-2222-3333-444-3
1111-2222-3333-555-1
1111-2222-3333-555-2
How can i achieve this.