SyntaxFix
Write A Post
Hire A Developer
Questions
In Oracle:
This gets the key of the max(high_val) in the table according to the range.
select high_val, my_key from (select high_val, my_key from mytable where something = 'avalue' order by high_val desc) where rownum <= 1