Skip to Main Content

APEX

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 values in select list

inkaFeb 6 2015 — edited Feb 7 2015


Hello all,

I want to display distinct values in the dropdown box.  This is the query I am using:

select distinct db_document_type_desc, db_document_type_id

from database_document_type

order by 1

The query above returns duplicate values because db_document_type_id for each db_document_type_desc record is unique.

How can I accomplish it?

Thanks.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 7 2015
Added on Feb 6 2015
3 comments
934 views