跪求SQL语句!!! 表(商品名称,商品类,租赁时间)请问现在要得到表中 某段时间内 某商品类中 商品租赁次数排名的前N个显示 商品名称 和 租赁次数 ???、谢谢,在线等待!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select top N 商品名称,count(商品名称) 租赁次数 from 表 where 租赁时间 between time1 and time2 group by 商品名称 order by 租赁次数 desc select top 10 商品名称,count(商品名称) 租赁次数 from 表 where 租赁时间 between time1 and time2 group by 商品类,商品名称 order by 租赁次数 desc select top N 商品名称,租赁次数 from (select 商品类,商品名称,count(商品名称) 租赁次数 from 表 where 租赁时间 between time1 and time2 group by 商品类,商品名称) t order by 租赁次数 desc 我是个新手,问个问题,很简单! 谁知道工具栏菜单栏上的小图片才什么网站上能下载???? 编译成可执行文件的时候的图标如何设置 一个局域网,有200多台机器,用什么协议通信稳定 delphi新手问题多了请大家多多包含~ . .*^_^* filter 问题??? 怎样在程序中直接用Tprinter类实现打印? 疑惑,难道borland的delphi程序员都不用代码缩进? 请问如何判定clientdataset1.fieldvalues['name']为null, 在 WinNT 中的文件拷贝问题,急 请教多事务问题,急!!! 字符串分割问题 请高人指点!
where 租赁时间 between time1 and time2 group by 商品类,商品名称) t order by 租赁次数 desc