select sum(a) from t group by a; select sum(a),a from t group by a; select sum(b),a from t group by a; select sum(a+b) from t group by a+b; select sum(a+b),a+b from t group by a+b; select a+b from t group by a+b; select a,b from t group by a,b;