select a.1, a.2, a.3, ... a.10 GROUP BY 1,2,3,4,5,6,7,8,9,10
conveys the intent more clearly than listing out all the column names
select a || 'baz', avg(b) from foo group by 1 order by 2;
Reply on news.ycombinator.com