Greetings
I have a table structured as follows:
ID Date WeekNo Month Day Hour Demand
1 2/12/2005 2 2 12 1 286.3
2 2/12/2005 2 2 12 2 315.1
..............................................................
.............................................................
100 12/02/2006 54 12 02 6 130.0
I need to two separate queries that gives the maximum demand and the date it occurs. eg
Date WeekNo MaxDemand
2/12/2005 1 315.1
2/19/2005 2 200.4
2/26/2005 3 538.2
(One record each week)
etc
and another with one record per month containing the maximum monthly demand and the date and time of the occurrence.
Date Month Hour MaxDemand
1/15/2005 1 14 320.4
2/12/2005 2 17 590.1
(One record for each month)
I am new to access and have been searching this site but cant find exactly what I need. Can someone direct me in the right direction?
Thanks for you help!!
Rmiller
I have a table structured as follows:
ID Date WeekNo Month Day Hour Demand
1 2/12/2005 2 2 12 1 286.3
2 2/12/2005 2 2 12 2 315.1
..............................................................
.............................................................
100 12/02/2006 54 12 02 6 130.0
I need to two separate queries that gives the maximum demand and the date it occurs. eg
Date WeekNo MaxDemand
2/12/2005 1 315.1
2/19/2005 2 200.4
2/26/2005 3 538.2
(One record each week)
etc
and another with one record per month containing the maximum monthly demand and the date and time of the occurrence.
Date Month Hour MaxDemand
1/15/2005 1 14 320.4
2/12/2005 2 17 590.1
(One record for each month)
I am new to access and have been searching this site but cant find exactly what I need. Can someone direct me in the right direction?
Thanks for you help!!
Rmiller