SELECT,
ColumnOne,
AVG(ColumnTwo) as ColumnTwoNew,
SUM(ColumnThree) as ColumnThreeNew
FROM
TABLE GROUP BY ColumnOne ORDER BY ColumnTwoNew
SELECT,
ColumnOne,
AVG(ColumnTwo) as ColumnTwoNew,
SUM(ColumnThree) as ColumnThreeNew
FROM
TABLE GROUP BY ColumnOne ORDER BY ColumnTwoNew