我正在尝试计算复杂查询中的行数(此查询旨在满足我的要求)。结果应该是,例如, NumberOfRecord:10。但是,我没有得到我期待的结果。如何改进查询?感谢
>
http://img815.imageshack.us/img815/6414/222222o.png
MS Access SQL视图:
SELECT Count(tblMeeting.Meeting_Id) AS [Number of jobs]
FROM (tblEmployee INNER JOIN tblMeetingType ON tblEmployee.Emp_Id = tblMeetingType.Chairperson_Id) INNER JOIN tblMeeting ON tblMeetingType.Type_Id = tblMeeting.Type_Id
GROUP BY tblMeeting.MeetingDate, tblMeeting.AgendaApproved, tblMeeting.AgendaTopic
HAVING (((tblMeeting.MeetingDate)>DateAdd("d",3,Now())) AND ((tblMeeting.AgendaApproved)=False) AND ((tblMeeting.AgendaTopic) Is Not Null));
答案 0 :(得分:1)