https://blogs.msdn.microsoft.com/bclteam/p/asynctargetingpackkb/ Outputted Date
我有一个单独的成员表,其中包含所有成员ID,我想列出所有这些,但要删除此列表中显示的那些。
{{1}}
这就是SQL视图
答案 0 :(得分:1)
不要使用:
select memberid from members where memberid not in (SELECT DISTINCT tbl_classregistration.MemberID
FROM tbl_member INNER JOIN (tbl_classes INNER JOIN tbl_classregistration ON tbl_classes.ClassID = tbl_classregistration.ClassID) ON tbl_member.MemberID = tbl_classregistration.MemberID
GROUP BY tbl_classregistration.ClassID, tbl_classregistration.MemberID
HAVING (((tbl_classregistration.ClassID)=[Enter ClassID])))