![]() |
#2
棉花糖two2007-02-02 10:35
|
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语句要怎么改才对啊?