select * from 员工信息表 a
where (
select count(*) from 员工考勤记录表
where cardid =a.cardid
and checktime between '2005-11-13' and '2005-12-1'
)<2
where (
select count(*) from 员工考勤记录表
where cardid =a.cardid
and checktime between '2005-11-13' and '2005-12-1'
)<2
解决方案 »
- access指定数据导入mssql指定表
- 这个……我都不知道怎么提问了……
- Dos 下的程式,联接SQl数据库(大力的朋友)
- 关于 CXPACKET
- 这个应该怎么读取,请大家指教,有难度!
- 在线等待!!!我进行不下去了!高手帮帮我吧!!!提示错误:不能在指定的事务处理器中获得新事务
- 超级难题,累加并计算记录的问题!
- 自己做的独立的微型DBMS。。有些问题求高手解决
- java执行带输出参数同时返回记录集的存储过程时,要是取参数,记录集就变空
- 查询求和问题,紧急求助。
- 请问其他机器能连接sql server2000个人版的数据库吗?
- 我要写一个存储过程,里面有个select语句from时 跟一个变量表名,不知如何写?
where cardid in
(select cardid from 员工考勤记录表
where checktime between '2005-11-1' and '2005-12-31'
group by cardid
having count(1)<2)
SQL菜鸟在各位的热心关怀下不断滴成长放分!!