我想把销售发货筛选一个客户销售数量前三的产品型号在报表里面显示出来。要如何操作?
做好排序后,在最父格高级里设置
直接在sql里面取前3就可以
mssql:select top 3 * from 表 order by zje
mysql或者sqlite:select * from 表 order by zje limit 3
Oracle:select * from (select * from 表 order by zje) where rownum<=3 order by rownum asc
sql server:select top 3 * from 表 order by desc zje
mysql:select * from 表 order by zje desc limit 3