I have a Select statement that pulls customer information i.e. CustomerID, FirstName, LastName, etc.
I want to be able to assign a sales person to the best 100 customers ranked by sales.
I have the select statement set up to pull the best 100 customers, how would I add a column to the statement that numbers the customers in such a way:
SalesID
1, 2, 3, 4, 1, 2, 3, 4...
Where my sales people ID is repeated over and over for all records.