2201 Invalid Ordinal

Advantage Error Guide

The SQL statement used an ordinal in the GROUP BY or ORDER BY clause but the ordinal specified does not correspond to the number of values in the SELECT clause. For example: SELECT lastname FROM Employees ORDER BY 2 -- The ordinal 2 is not valid because there is only one value in the SELECT clause.