你的两个表之间有关联字段吗?你比较的时候是Addtime 有限制吗?
把表结构写出来把
把表结构写出来把
解决方案 »
- 如何汇总true和false?
- sql 语句一条,请求排错。
- 好像这样不行,那如何让变量充当字段名呢?
- 晕呀,数据库备份出错了。。。。。。。。。。。。。。。。。。。。。。。。
- 高分讨论!用存储过程还是在客户端用SQL语句好
- !!!!!机器该名之后,数据库sql2000和sql7.0不好用了,我应该怎么办那?
- 急: SQL 怎么实现,加上一行查出的值??例:0+100,100+200```
- 这个分页SQL语句有什么问题
- 请问在ASP中如何使用ODBC连接SQL SERVER数据库
- 数据库存储过程更新多表
- 请邹建大哥帮忙.....数据库修复问题!!!!
- 请教:如何用触发器实现:防止更新已作废数据?
Usr
ID, AddTimeResult
UID, SuperRetail, RetailUsr.ID = Result.UID
TO churchatp1
直接联系可以吗? 真的很急。现金谢你都行呀。
QQ 13994912
MSN [email protected]
case
when datediff(year,birthdate,getdate()) >0 and datediff(year,birthdate,getdate()) <=10 then '1-10'
when datediff(year,birthdate,getdate()) >60 and datediff(year,birthdate,getdate()) <=70 then '61-70'
when datediff(year,birthdate,getdate()) >70 then '70以上'
end cdes ,count(*) crs
from person
自己改改吧
20分给我哦