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!

distinct in use with order by

16310Jul 23 2002 — edited Jul 22 2008
Hi guys,
I have a problem using distinct with order by.
This is my code:

select distinct att.STYPID from POI.ASSETREIHE asd,POI.ASSETTYPE att
where asd.STYPID=att.STYPID
and asd.MATCH='fonds'
and asd.DATUM='31.05.2002'
order by att.PRIO

But I become the error: "ORA-01791:not a Selected expression"

How can I solve that problem???
A little other question, how can a delimit that the query gives maximum
3 rows back? Is that possible??

thanxx

Schoeib
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2008
Added on Jul 23 2002
7 comments
1,296 views