M
Martin
Hello,
I am looking for some advice on how to tackle querying some data.
I have two tables, table one with around 10,000 records per month and
columns that give me (for each record) a start date, start time, end date and
end time.
Table two details a percentage for each hour and day of the week (so 24
hours * 7 days = 168 records). This has three columns, the day of the week
(Mon to Sun), the hour (00:00 to 23:00) and a percentage.
What I want to do is sum the total of the percentage column in table 2 where
the day of the week and the hour of the week fall within the start date /
start time and end date / end time.
Any help would be greatly appreciated.
Martin
I am looking for some advice on how to tackle querying some data.
I have two tables, table one with around 10,000 records per month and
columns that give me (for each record) a start date, start time, end date and
end time.
Table two details a percentage for each hour and day of the week (so 24
hours * 7 days = 168 records). This has three columns, the day of the week
(Mon to Sun), the hour (00:00 to 23:00) and a percentage.
What I want to do is sum the total of the percentage column in table 2 where
the day of the week and the hour of the week fall within the start date /
start time and end date / end time.
Any help would be greatly appreciated.
Martin