I have a table of records housing items processed by various persons. I need to get a random quality sampling of data for each person in a given time period. The kicker is I need it to pull 10 records for each person. The query is pulling as desired except I can't figure out how to tell the query to pull 10 records for each person. The query is set up as follows.
This pulls the top 10 of all records no matter the [EndEID]. Any help would be appreciated.
Code:
SELECT TOP 10 DocTable.EndEID, DocTable.CaseID, DocTable.Account, DocTable.Amount, DocTable.LogEID, DocTable.EndDate, DocTable.[1stEID], DocTable.[2ndEID], DocTable.[3rdEID], DocTable.Status
FROM DocTable
WHERE (((DocTable.EndDate) Between Date()-7 And Date()))
ORDER BY Rnd([Account]);
This pulls the top 10 of all records no matter the [EndEID]. Any help would be appreciated.