Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01791: not a SELECTed expression - Order by

sujnanJan 27 2012 — edited Jan 27 2012
Hi,
Below query is executing in one system (database version 10.2 64 bit) without any error.

select distinct CONTRACTOR_ID,CONTRACTOR_NAME from CONTRACTOR order by REGISTRATION_NO

But same query is not working in other system (database version 10.2 32-bit). It throws ORA-01791: not a SELECTed expression error.
Please clarify why it is working in one system and not working in other system

Thanks,
Sujnan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 24 2012
Added on Jan 27 2012
4 comments
2,639 views