J
JD
Hi there.. I need to run a query that counts the number of times any
customer ID shows up in the table.. but no more than 10 instances of
each to be in the output. So, if a customer ID is in the table 3
times, then all 3 rows output, if the customer ID is in the table 10
times, then all 10 rows output and if the customer ID is in the table
20, then only the first 10 rows output. (Sorry if this is confusing..
it's hard to type out what I'm looking for!). Is there a way to do
this? Preferably a query.. but I'll take any ideas! Thanks!
customer ID shows up in the table.. but no more than 10 instances of
each to be in the output. So, if a customer ID is in the table 3
times, then all 3 rows output, if the customer ID is in the table 10
times, then all 10 rows output and if the customer ID is in the table
20, then only the first 10 rows output. (Sorry if this is confusing..
it's hard to type out what I'm looking for!). Is there a way to do
this? Preferably a query.. but I'll take any ideas! Thanks!