我试图总结这些表格,我可以指出我错做什么。
我的第一个表是:
Reserve
ReserveID MembershipID PlayerCount Time CourseID
我的第二次会议
Courses
CourseID Name
我刚才所试图的 statement言在这里:
Select Sum(Reserve.Player_Count)Total
From Reserve
Left Join Courses
On Courses.CourseID = Reserve.ReserveID
Where Time = "2012-04-09 07:10:00"
And Courses.Name = "Lake" (or I had Courses.CourseId = "1")