D
DKS
This seemed a simple one for me, but got stuck somewhere. Can somebody help?
I have a table with readings of several instruments on different dates.
There are several hundreds instruments. For some instruments, reading may
not be taken every day. There are no readings taken on weekends and holidays.
I need a query that will accept as input the name of the instrument and a
date range (start date and end date). For this combination of input
parameters I want to determine what was the max and min reading for the
instrument - and the date of this max and min reading.
If putting both the max and min in the same query can complicate affairs
then I do not mind having one query for max value, and another query for min
value.
Can someone help?
Many thanks in anticipation.
I have a table with readings of several instruments on different dates.
There are several hundreds instruments. For some instruments, reading may
not be taken every day. There are no readings taken on weekends and holidays.
I need a query that will accept as input the name of the instrument and a
date range (start date and end date). For this combination of input
parameters I want to determine what was the max and min reading for the
instrument - and the date of this max and min reading.
If putting both the max and min in the same query can complicate affairs
then I do not mind having one query for max value, and another query for min
value.
Can someone help?
Many thanks in anticipation.