一个关联查询
a 表
user_id,user_name,pass
1 aaa aaa
2 bbb dddd
3 ea ddd
b 表
user_id ,user_date,remark
2 2006-06-10 aaa
3 2006-06-11 aaa
做个关联查询获取
某一天
b 表没有,a 表有的数据
是某一天,
比如 2006-06-10 这一天
user_id,user_name,pass
1 aaa aaa
3 ea ddd
006-06-11 这一天
user_id,user_name,pass
1 aaa aaa
2 bbb dddd
------解决方案-------------------- Select A.* From A
Left Join B On A.[user_id] = B.[user_id] And B.user_date = '2006-06-10 '
Where B.[user_id] Is Null
Select A.* From A
Left Join B On A.[user_id] = B.[user_id] And B.user_date = '2006-06-11 '
Where B.[user_id] Is Null
------解决方案--------------------是 '2007-06-10 '吧,语法没问题