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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Selecting highest in ('high', 'medium', 'low') from different columns

User_UFW31Feb 11 2022

Hi Everyone,
Firstly, I have to say I am new to SQL and the Oracle community. I am learning to write SQL queries. I have come across a situation where I need to select highest value among 3 levels high, medium and low from 3 different columns. I tried to search for the answers with no luck.
Basically I have 3 columns
image.png
And I want the result to have highest value from high, medium or low for the ID.
image.pngI know MAX() function just would select the highest using alphabetical order, but it would not work for me.
Hope that makes sense. Any help will be much appreciated.
Thank you

This post has been answered by Frank Kulash on Feb 11 2022
Jump to Answer
Comments
Post Details
Added on Feb 11 2022
11 comments
3,877 views