Max(), Min() Problem

G

Guest

I have a table with several "ref" values for a given "SH". I would like to
find the min and max ref per sh. I have:
Select sh,MAX(rm) as Maxrm, MIN(rm) as Minrm
From table;

I get the error:
"you tried to execute a query that does not include the specified expression
'sh' as part of an aggregate function"

I've tried several different setups and still not what I am looking for a
result.
Any Help is greatly appreciated, Thanks in advance
Ken
 
G

Guest

I'm a not so smart beast of burden, I should have known that.

Worked great, thanks for the help
 

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