First of all, let me say that this is my first time posting a question, but I have used this site many times to help me with my database issues. But this issue i've got i was unable to find/figure out, so i thought I'd venture out of the darkness to see if you all might be able to shine some light on the situation.
I'm trying to do some analytics on some data and am encountering an issue when i try to figure out the range of values a given customer might have. To simplify the situation:
Suppose I have a table with the following fields:
Customer - call them A, B, C etc - I have about 2000 customers
transaction number - Each customer provides us data with 2 distinct transaction ranges. each customers range is different (IE: customer A can have ranges 5001001 to 5002001 and 1001001 to 1001050 and customer B can have a range of 3001 to 3050 and 40002 to 50001). Each customer only has 2 ranges (but can also have only 1), and each range are orders of magnitude different (as in my example).
I would like to define each customers ranges such that I can figure out the MIN and MAX of each range for each customer.
My challenges have been the huge amount of data (about 2,000,000 records) and that no where else in the data is there any secondary information that i could use to differentiate the two ranges into two distinct transaction types.
This might be to overly specific, but does anyone have any thoughts on how i might be able to identify the two ranges?
Thanks in advance.
I'm trying to do some analytics on some data and am encountering an issue when i try to figure out the range of values a given customer might have. To simplify the situation:
Suppose I have a table with the following fields:
Customer - call them A, B, C etc - I have about 2000 customers
transaction number - Each customer provides us data with 2 distinct transaction ranges. each customers range is different (IE: customer A can have ranges 5001001 to 5002001 and 1001001 to 1001050 and customer B can have a range of 3001 to 3050 and 40002 to 50001). Each customer only has 2 ranges (but can also have only 1), and each range are orders of magnitude different (as in my example).
I would like to define each customers ranges such that I can figure out the MIN and MAX of each range for each customer.
My challenges have been the huge amount of data (about 2,000,000 records) and that no where else in the data is there any secondary information that i could use to differentiate the two ranges into two distinct transaction types.
This might be to overly specific, but does anyone have any thoughts on how i might be able to identify the two ranges?
Thanks in advance.