B
blackdoggiegirl
I am trying to read a file that has operator ids and account numbers. My
assignment is to get the first 10 or less for each operator and skip the rest
and go on to the next operator. I got the code to work for less than 10 but
not when there are more than 10 accounts. Thanks for your help. The code is
below.
SELECT MyFile.OPR_ID, MyFile.ACCT_NBR, COUNT(Aug_Eff_Non_Blocks.ACCT_NBR) AS
NUM_ACCTS
FROM MyFile
GROUP BY MyFile.OPR_ID, MyFile.ACCT_NBR
HAVING COUNT(MyFile.ACCT_NBR) <= 10
ORDER BY MyFile.OPR_ID, MyFile.ACCT_NBR DESC;
assignment is to get the first 10 or less for each operator and skip the rest
and go on to the next operator. I got the code to work for less than 10 but
not when there are more than 10 accounts. Thanks for your help. The code is
below.
SELECT MyFile.OPR_ID, MyFile.ACCT_NBR, COUNT(Aug_Eff_Non_Blocks.ACCT_NBR) AS
NUM_ACCTS
FROM MyFile
GROUP BY MyFile.OPR_ID, MyFile.ACCT_NBR
HAVING COUNT(MyFile.ACCT_NBR) <= 10
ORDER BY MyFile.OPR_ID, MyFile.ACCT_NBR DESC;