怎样找出最大时间的那一组记录并分组,记录超过100万条要考虑运行效率 没测验Select * from table t1 left join table2 on a.Groupid=b.Groupid and a.time<b.time where t1.speed>0 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试这个select * from gtss where time in( Select max(time) from gtss where speed>0 group by groupID ) select *from table awhere speed>0 and exists (select 1 from table where a.time>time and a.Groupid=Groupid) 数据库里的数据结构是怎么实现的? 数据转型 一个集成系统中,需要多个库的数据合成,大家觉得如何设计主键及如何让数据汇总最为合适 求一语句 一句SQL语名消耗60% cpu 好久才查出结果是什么原因? GODADDY国外空间的SQL2005数据库乱码 建立触发器检查单据 OLE DB 提供程序 'msdaora' 报错。 多表连接查询 那位大侠讲讲commit 和 rollback得具体用法吧 急!在线! 一个简单问题--“怎么把一个表中的数据库导出成一个文本文件?最好是导成SQL语句的文本文件,可以实现吗???” 求助~~查询没有返回值
from table a
where speed>0 and exists (select 1 from table where a.time>time and a.Groupid=Groupid)