I have cust_num and order_date fields. Some customers have only one order while others have more. Therefore some of them have only one records while other have more records.
I need an additional column ORDER_SEQUENCE with a asc sequence of the of the orders (1,2,3...).
Also if the same customer has more than one order at the same day I need another additional column NOTE with a value
"multiple orders".
cust_num order_date Order_sequence note
11 2/12/2007 1
11 3/10/2008 2
12 1/5/2005 1 multiple
12 1/5/2005 2 multiple
13 3/13/2004 1
14 4/3/2009 1
14 5/3/2009 2
14 7/4/2009 3
Could you please help me with it?
Thank you in advance,
Iren
I need an additional column ORDER_SEQUENCE with a asc sequence of the of the orders (1,2,3...).
Also if the same customer has more than one order at the same day I need another additional column NOTE with a value
"multiple orders".
cust_num order_date Order_sequence note
11 2/12/2007 1
11 3/10/2008 2
12 1/5/2005 1 multiple
12 1/5/2005 2 multiple
13 3/13/2004 1
14 4/3/2009 1
14 5/3/2009 2
14 7/4/2009 3
Could you please help me with it?
Thank you in advance,
Iren