I have a table with 3 fields: CUSTOMER, START INVOICE NUMBER and END INVOICE NUMBER
I want to populate an identically formatted table with a consolidated list of start and end invoice number ranges for each customer. HOWEVER! Heres the rub....
The ranges for each customer in your starting table may overlap, one range of numbers may fit inside another range of numbers for the same customer.
For example:
Customer: X Start: 10 Finish: 15
Customer: X Start: 11 Finish: 17
Customer: X Start: 9 Finish: 16
Customer: X Start: 3 Finish: 7
I want to represent this in my new table as:
Customer: X Start: 3 Finish 7
Customer: X Start: 9 Finish: 17
I have been banging my head again against a wall for hours trying to work this out.........
PLEASE HELP!
Regards,
Dalien51
I want to populate an identically formatted table with a consolidated list of start and end invoice number ranges for each customer. HOWEVER! Heres the rub....
The ranges for each customer in your starting table may overlap, one range of numbers may fit inside another range of numbers for the same customer.
For example:
Customer: X Start: 10 Finish: 15
Customer: X Start: 11 Finish: 17
Customer: X Start: 9 Finish: 16
Customer: X Start: 3 Finish: 7
I want to represent this in my new table as:
Customer: X Start: 3 Finish 7
Customer: X Start: 9 Finish: 17
I have been banging my head again against a wall for hours trying to work this out.........
PLEASE HELP!
Regards,
Dalien51