1-select sum(grye) grye, sum(zhye) zhye from fwxx;
--grye等于zhye
2-select sum(snjz) + sum(grjc) - sum(grtq) from fwxx;
--sum(snjz)+sum(grjc)-sum(grtq)等于zhye这个待定
3-select sum(grbf) grbf, sum(yjhj) yjhj from fwxx;
--grbf等于yjhj
4-select sum(zhye)-sum(zzye)-sum(bjye) from fwxx;
--结果为0
5-select sum(zhye)-sum(grjc)-sum(snjz)-sum(grtq) from fwxx;
--应该等于0不过也待定
6-select sum(df)-sum(jf) from ywls
--结果为0
7-select sum(df)-sum(jf) from fwls
--结果为zhye
原文地址:http://9442063.blog.51cto.com/9432063/1622641