这句SQL错在哪
我想做一个统计,发现在一张表中统计没问题,但从两张表中统计时却发现统计有问题,请高人指点一下
A) select strcd,sum(amt) from stramt where date>'1-3月-2009' group by strcd
B) select a.strcd,sum(b.amt) from strinfo a,stramt b where date>'1-3月-2009' group by a.strcd
A统计时没问题,B统计时发现sum(b.amt)全是一样的数据543564.85,为什么啊