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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Need help with select distinct with group by

lelandFeb 16 2009 — edited Feb 17 2009
RDBMS 10gr2

I am trying achieve having a select distinct with a order by and after looking on the internet and trying different examples, I have been unsucessful.

Here is the code working (not sorting - I wish to sort by pps.last_name however I can't seem to get it to work).
select distinct pps.last_name || ', ' ||pps.first_name || ' ' ||pps.middle_initial || '.' d, 
       emple_no r
  from cobr.vw_pps_payroll pps,
       projman pm
 where term_date is null
   and department = '0004400000'
   and pm.eid != pps.emple_no
This post has been answered by 469753 on Feb 16 2009
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 17 2009
Added on Feb 16 2009
5 comments
1,109 views