急求一个sql语句 select * from 表1 awhere id in (select top 2 id from 表1 where SortID=a.SortID order by id) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.* from 表1 a,表2 bwhere a.SortID=b.SortIDand a.id in (select top 2 id from 表1 where SortID=a.SortID order by id)order by a.SortID,a.id 关系代数中的除怎么用SQL表示 关于历史表设计方案,请高手解答! 关于SQL Case的问题 不明白:...From dbo.syscolumns A,dbo.syscolumns B 4个月来学SQl Sever的一些过程 触发器问题(简单) 比如我想在每月26日开机时执行update某表的操作,如何做?(最好能把命令写上) 怎么实现在每次操作数据库的时候,其记录的排列顺序都是不同的? 有没有人能具体讲一讲关于大文本处理的过程! odbc数据源 极度菜的一个问题,关于数据导入的 我连续使用left outer 就出现重复记录怎么解决?
where a.SortID=b.SortID
and a.id in (select top 2 id from 表1 where SortID=a.SortID order by id)
order by a.SortID,a.id