select * from 表 tem where date in (select top 3 date from 表 where topid=tem.topid order by date desc)
解决方案 »
- 帮忙写一个SQL语句,挺简单的。
- POWERDESIGNER 基础问题
- 求助
- SQL连接问题,要哭死了,达人COME ON
- 有谁知道怎样可以得知一个客户程序连到sql server的数量
- sql server 2000 横向纵向数据查询
- 感谢邹建建议; 但数据库质疑 通过以下方法还是出错问题 ……急!!!!求教高手;
- 关于在同一张表中多个条件限制的查询问题
- 请教一个有关sqlserver7。0连接问题?
- 如何通过代码实现向Access库中ole对象的字段中追加图片?
- 请问C#的ArrayList在sql中应存为什么数据格式?谢谢
- 在出入库表中分别有物资编号(MaterialCode),仓库代号(StorageID)和出入库数量(Number),出库时间(OutStockDate),入库时间(InStockDate),现
select * from topic tem where time in (select top 3 time from topic where topic=tem.topic order by time desc)order by topic2.
select * from topic a where (select count(*) from topic b where a.topic=b.topic and b.TIME<=a.TIME)<=3 ORDER BY topic