I have two tables [Events] and [Weather]. The event table contains two relevant fields [EventName], [EventDateTime]. The weather table contains [DateTime] and [Temperature].
I want to create a query that displays all events and the weather information for that time. Since events last three hours, I want to take an average of time x, time x+1 and time x+2, where time x = [EventDateTime]. I know how to create an inner join to display the weather at the start time of each event, just don't know how to take average of that and the two following times.
any help would be appreciated. thx