快速笔记: 如何统计相同行:
select gid,sid,block,outfactorydate,price from d_stockgoods group by gid,sid,block,outfactorydate,price having count(gid)>=2