select id
from tb a,(select team,max(dotime) as dotime from tb group by team) b
where a.team=b.team
from tb a,(select team,max(dotime) as dotime from tb group by team) b
where a.team=b.team
解决方案 »
- 用eclipse连接sqlserver出错
- 请问在嵌套循环中外层值为何不增加?
- 如果中文字符是通过参数传入存储过程执行,如何在存储过程中达到“insert into t(a, b) values(N'简体', N'繁体')”的效果?
- 请问在以sqlserver2000服务器设计c/s形式的数据库系统,客户端使用ODBC连接服务器,每个客户端都要添加数据源吗?
- 用函数和存储过程那个更快一点
- 号码扩展
- 哪一位分析过SQL数据库里边的系统表?
- 字符格式问题
- 如何用程序查看SQLServer是否正在使用?
- 请教ADO高手
- 如何能够让数据库升级(说白了就是把旧的数据库变成现在需要的数据库结构)
- SP调SP的问题(有返回参数)
from 表 a,(select team,dotime=max(dotime) from 表 group by team)b
where a.team=b.team and a.dotime=b.dotime
group by b.team