Max(), Min() Problem

K

Ken

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
 
Top