SELECT tablename.TradeID, Min(tablename.TradeValue) AS Lowest
FROM tablename
GROUP BY tablename.TradeID
Looking for relevant Development Whitepapers? Visit the SearchWinDevelopment.com Research Library.
FranktheMan | Mar 6 2008 9:22PM GMT
I see what you are doing with this answer.. But I must have phased my question wrong.
I want ONLY the Lowest Price(TradeValue) In each catagory (TradeID)
SQL you gave just sorts the prices
Buddyfarr | Mar 6 2008 9:30PM GMT
well if you use the above it will give you the lowest to highest, you could add a FIRST statement to choose only the very first one once it is ordered lowest to highest and that would give you the first answer, which would be the lowest of all of them.
Ahafez | Mar 12 2008 11:15PM GMT
Use a query and Group on TradeID and for the tradevalue set it to Min, this should display only the minimum value for each TradeId. Use the query as a Source in a Report or Form designe.