Oracle Error PLS-00423: ORDER BY item must be the number of a SELECT-list expression

Oracle Error Message

PLS-00423: ORDER BY item must be the number of a SELECT-list expression

Reason for the Error

A column alias was used in the ORDER BY clause of a SELECT statement that uses a UNION, INTERSECT, or MINUS set operator. This is not allowed. In such cases, expressions in the ORDER BY clause must be unsigned integers that designate the ordinal positions of select-list items.

Solution

Change the alias in the ORDER BY clause to an unsigned integer that designates the ordinal position of the select item in question.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Oracle Error Message ORA-24328: illegal attribute value Reason for the Error The attribute value passed in is illegal. Solution Consult...
Oracle Error Message ORA-01346: LogMiner processed redo beyond specified reset log scn Reason for the Error LogMiner has detected a...
Oracle Error Message ORA-13241: specified dimensionality does not match that of the data Reason for the Error An error occurred...