我想做的是Sum和一个列,并将该查询返回给客户端
我该怎么做?
马尔科姆
SELECT othercol1,othercol2,SUM(bar) FROM ( SELECT othercol1,bar FROM RT UNION ALL SELECT othercol1,bar FROM FM ) foo GROUP BY othercol1,othercol2