I have a query with output as:
CUST PROD
Customer1 Product1
Customer1 Product2
Customer1 Product3
Customer2 Product1
Customer2 Product2
Customer3 Product1
The output required is
Number CUST PROD
1 Customer1 Product1
Customer1 Product2
Customer1 Product3
2 Customer4 Product1
Customer4 Product2
3 Customer5 Product1
For every change in customer i need to put a new serial number..
How can this be done..Please help
[EDITED by LF: applied [pre] tags]
[Updated on: Wed, 24 March 2010 02:53] by Moderator
Report message to a moderator