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!

MAX Function Not Giving Accurate Results

189123Aug 30 2009 — edited Sep 1 2009
Hello,

I have the following sql
 select ename ,temp,max(ver) as rv from
table
WHERE id = 5000 
AND id2 = 8000 
group by ename ,temp
Problem with the above is always gives two records, ideally it should give only one which should be max(ver).

How can I resolve this issue?

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2009
Added on Aug 30 2009
33 comments
1,879 views