I have a table with the following structure:
Referrals
ReferrerID Date_Activated ReferredID
INT DateTime INT
I would like to do an SQL COUNT, but I need to count multiples of 10.
So for example, if there are 34 entries by ReferrerID, I would like the count to return 3 (since there are only 3 multiples of 10).
Or, if there are 29 entries for ReferrerID X, I would like it to return 2 (since it’s less than 30)
try this: