[求助]SQL语句问题
select StoDate,StoPaID,StoName,StoVi,StoPaMo,StoPayout,StoInMo,StoEsMo,StoCoMo from StoPactInfo,(select StoPaID,sum(StoInMo) as StoInMo,sum(StoEsMo) as StoEsMo,sum(StoCoMo) as StoCoMo from StoPactInfo group by StoPaID) as StoPactInfo那位兄弟帮我看看这个错误的SQL语句要怎么改才对啊?