Returning a minimum or maximum value from a query

G

Guest

I have a query which returns 1 or more quantity values in one field for each
product, in numerically increasing order. Is there anyway I can only return
the minimum value for each product?
 
G

Guest

Using a GroupBy query, like

SELECT TableName.Product, Min(TableName.Quantity) AS MinOfQuantity
FROM TableName
GROUP BY TableName.Product
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top