Home Forums Article Discussions Article Discussions by Author Discuss Content Posted by Dinesh Asanka Find Min/Max Values in a Set RE: Find Min/Max Values in a Set
gamcall
Old Hand
Points: 315
More actions
November 21, 2003 at 11:25 am
#483193
Hasn't anyone here (or who read the Oracle magazine) heard of correlated sub-queries?
select aField from aTable t1
where 2 = (select count(*) from aTable t2
where t2.aField > t1.aField)