答案 0 :(得分:1)
您可以在A
列进行汇总,然后检查以确保B
列中包含“否”值的记录数为零。
SELECT [A]
FROM yourTable
GROUP BY [A]
HAVING SUM(IIF([B] = 'No', 1, 0)) = 0
@JohnInk编辑:
如果您还希望将匹配的A
值移动到您可以查看的新表格中,则可以使用SELECT ... INTO
:
SELECT [A]
INTO newTable
FROM yourTable
GROUP BY [A]
HAVING SUM(IIF([B] = 'No', 1, 0)) = 0