: How to calculating the max,min,avg of a column from a given query? [message #371971] |
Thu, 28 December 2000 09:31 |
Mark
Messages: 284 Registered: July 1998
|
Senior Member |
|
|
I want to calculate the maximum, minimum, and average of a subset of a column. My psuedo query would be:
select time_stamp, Temperature from foo where time_stamp >= to_date('122700:10:05') and time_stamp <= to_date('122700:10:07');
Here is what I would like to see, with the max,min,avg at the bottom.
TIME_STAMP OSA_TEMPERATURE
---------- ---------------
122700:10:05 65.1
122700:10:06 65.2
122700:10:07 65.0
------------
maximum 65.2
minimum 65.0
average 65.1
How can I have the query display the max, min and avg at the end of the report? What do I need to add to the query to get this information?
|
|
|
|
|