求select语句

现在我有两个表,表a中有一个字段叫username,表b中也有一个字段叫username,他们表示的意思也是一样的。
表a是用户表,所有的用户都在里面保存,表b是保存用户执行的操作,现在我们要求用户每周都要进行一次操作,操作后的记录会保存到表b中,现在我想统计出还有哪些用户没有进行操作。求select语句,我用的数据库是access的

谢谢大家先!!!
---------------------------------------------------------------

表b中还有什么字段
---------------------------------------------------------------

select * from a where username not in (select username from b)
---------------------------------------------------------------

try:select username from a where not exists(select distinct username from b)
---------------------------------------------------------------

select username from tableA where username not in (select username from tableB)
---------------------------------------------------------------

select * from a where username not in (select username from b)
---------------------------------------------------------------

select distinct username from a where username not in(select distinct username from b)

Published At
Categories with Web编程
Tagged with
comments powered by Disqus