Sort on Output of Query (With Distinct) Results into ORA-904 on "DISTINCT"
Last updated on OCTOBER 27, 2016
Applies to:Oracle SQL Developer - Version 4.0 and later
Information in this document applies to any platform.
The query "select distinct deptno, d.* from dept d" produces correct output in SQL Worksheet.
However, when sorting the "query output" by clicking on a column header, the following error occurs:
ORA-00904: "DISTINCT": invalid identifier
00904. 00000 - "%s: invalid identifier"
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms