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