Readability
Correctness
You can order or group the result set based on the ordinal positions of columns that appear in the SELECT clause
ORDER BY
SELECT col1
,col2
,col3
FROM table
ORDER BY 1
,2
,3
GROUP BY
SELECT col1
,COUNT(9)
FROM table
GROUP BY 1
Using the ordinal positions of columns in the ORDER BY / GROUP BY clause is considered an anti pattern
Always reference columns by their name and not their ordinal position.
ORDER BY
SELECT col1
,col2
,col3
FROM table
ORDER BY col1
,col2
,col3
GROUP BY
SELECT col1
,COUNT(9)
FROM table
GROUP BY col1
For ad hoc queries where you need to quickly write up some SQL that you don’t share with other developers and then discard, the anti pattern is legitimate.