ORA-01791: not a SELECTed expression - Order by
sujnanJan 27 2012 — edited Jan 27 2012Hi,
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