查询cvencode,cinvcode,ilowerlimit这三个字段都相同且>=2条的记录
------解决方案--------------------
怎么又发一贴?
- SQL code
select cvencode,cinvcode,ilowerlimit from Tgroup by cvencode,cinvcode,ilowerlimithaving count(1) >=2
select cvencode,cinvcode,ilowerlimit from Tgroup by cvencode,cinvcode,ilowerlimithaving count(1) >=2