SQL 多表的问题 好: 我现在有个表里面全是用户信息的数据,然而,我每天都将对每个用户拥有一个当天的记录,也就是说,每天所有用户都要在另外一个表里面存在...但我怎么查询不存在的用户呢??? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select distinct 客户姓名 from 客户表exceptselect distinct 客户姓名 from 记录表 select *from 记录表 where not exists(select *from 用户表 where 用户表.id=记录表.id and date='2010-11-08') Select * from 用户表 where id not in((select id from 用户表,记录表 where 用户表.id=记录表.id and 用户表.时间=记录表.时间)) select *from 记录表 where not exists(select *from 用户表 where 用户表.id=记录表.id) and date='2010-11-09' select *from 记录表where not exists(select1 from 用户表 where 用户表.id=记录表.id and date='2010-11-08') select *from 记录表where not exists(select 1 from 用户表 where 用户表.id=记录表.id and date='2010-11-08') 代码找错~~~求帮忙找一下错误~~ mysql 备份问题??求助?? 急@ 请教空字符串的问题 分组筛选问题 操作系统是Windows server2003.安装SQL2000时,提示不支持.为什么? 一表中有一万记录,该怎样设计? SQL中日期和时间的问题,急!谢谢~~~ 一个很烦人的问题大家帮帮我啊,关于文本两行变一行的问题,。在线等。。。到半夜。。。 索引里面的填充因子是什么意思 sqlserver.exe在什么情况下导致内存使用一直增加? 新手求教,表的平移? 关于同一个登录名访问不同数据库的问题
except
select distinct 客户姓名 from 记录表
date='2010-11-08')
Select * from 用户表 where id not in(
(select id from 用户表,记录表 where 用户表.id=记录表.id and 用户表.时间=记录表.时间))
date='2010-11-09'
*
from
记录表
where
not exists(select1 from 用户表 where 用户表.id=记录表.id and date='2010-11-08')
*
from
记录表
where
not exists(select 1 from 用户表 where 用户表.id=记录表.id and date='2010-11-08')