I have a query that pulls in our clients name, and a running sum of all the pharmacies they using count patients. Is there a way to pull the clients name, and only the top two pharmacies being utilized in a query?
Have a look at the TOP keyword in SQL - also available from the query properties.
Note that you cannot combine TOP with DISTINCTROW - in that case you need to create one query with distinctrow or groupings, and base another query on that one to select the top 2.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.