Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding the range of two records in a grouped query

Status
Not open for further replies.

smuthcrmnl777

Technical User
Jan 16, 2006
104
US
I have a subgroup of 2 records that are grouped and one element is averaged. I would like to take the same element and find the range. The range is basically the Highest numeber subtract the lowest number no matter how many records you have. Is there a way to do this in a Grouped Query?
 
Have a look at the Max and the Min aggregate functions.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top