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!
select DISTINCT sal , row_number() over (order by sal asc) from emp order by sal asc