SQL语句-查询费用总和为0的案件号
注意group by 和having子句的使用
select a.clmno,sum(a.realpay) from llclaimdetail a where 1=1 group by a.clmno having sum(a.realpay)=0
注意group by 和having子句的使用
select a.clmno,sum(a.realpay) from llclaimdetail a where 1=1 group by a.clmno having sum(a.realpay)=0