I need to get the Top 2 records per Customer AND Product. So my data looks like this...
Customer ProdCode
-------- --------
Cust1 PROD1
Cust1 PROD1
Cust1 PROD1
Cust1 PROD1
Cust1 PROD2
Cust1 PROD2
Cust1 PROD2
Cust1 PROD2
Cust1 PROD2
Cust2 PROD1
Cust2 PROD1
Cust2 PROD1
Cust2 PROD1
Cust2 PROD1
but I want it to look like this...
Customer ProdCode
-------- --------
Cust1 PROD1
Cust1 PROD1
Cust1 PROD2
Cust1 PROD2
Cust2 PROD1
Cust2 PROD1
I've found a number of examples of Top N per Group but not for two columns.