Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Query issue
This query is driving me crazy. I know I am missing something simple here:
select e.employee, mrev.next_review
from employee e
,(select r.employee, max(r.next_review) as next_review from review r group by r.employee) mrev
Employees have multiple rows in the review table and not all employees are in the review table. I need to get the latest next_review, which I am getting from the query.
But, how do I get the corresponding next_rev_code for this employee which is also in the review table?
Thanks,
Manjula
-- http://www.freelists.org/webpage/oracle-lReceived on Mon Feb 05 2007 - 17:14:26 CST
![]() |
![]() |