Hm, tricky query there.. but I think something like this might work:
SELECT Team.HomeName, SUM(IIf(Team.HomeId = Games.HomeId, Games.HomeScore, Games.AwayScore))
FROM (Games LEFT JOIN Team ON (Games.HomeId = Team.HomeId OR Games.AwayId = Team.AwayId)) LEFT JOIN Schedule ON (Games.DateId = Schedule.DateId)
WHERE Schedule.ScheduleDate <= #4/30/2006# AND Schedule.ScheduleDate >= #4/1/2006#;
|