Access - make new table with top "n" rows

I have a table that lists frequencies of occurrence. - that has over 1000 rows.

I have sorted by count of frequency.

Please offer how I can select just the top "n" rows (example 10 rows) into a new table.

Thank you.
exp vgAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dale FyeCommented:
you can use the TOP predicate in your query:

SELECT TOP 10 T.*
FROM yourTable as T
ORDER BY T.Freq DESC

The down side of this is that if you have freq counts of :

20, 20, 20, 19, 18, 18,18, 17, 17, 17, 17, 17, 17, 17, 16, 16, 16

the records in italics represent the top 10, but you would get all of the records associated with all of the bolded records.  The Top Predicate will identify the value associated with the 10th record and will include all records with a similar value.  You can mitigate this if you add another column to the ORDER BY clause
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
exp vgAuthor Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.