I have the folowing table:
DATA TotalCount
A 0
B 15
C 0
D 2
E 8
The field "TotalCount" can contain many duplicates. I to select one record with the smallest number.
In this case, an example would be:
A 0
I tried the folowing query but it returned more than one record:
Thank you.SELECT TOP 1 rndnumbers FROM query1_qse ORDER BY query1_qse.TotalCount ASC;
Last edited by Alexander Ceed; 12-29-2011 at 09:47 AM.
Perhaps:
SELECT TOP 1 DATA, TotalCount FROM query1_qse WHERE TotalCount = (SELECT MIN(TotalCount) FROM query1_qse)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Perfect. Thank you.
Happy holidays to all of excelforum members.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks