How can u find column name from a table which have max value
in a row.( not max value)
Answer Posted / mahalakshmi s
select case when col1>col2 then 'col1' else 'col2' end, greatest(col1,col2) end from table_name;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to get each name only once from an employee table?
What are types of joins?
What are the qualities of 2nf?
Why do we need databases?
Is it possible to include an insert statement on the same table to which the trigger is assigned?
How can we optimize a sql query?
How do I make my sql query run faster?
What is PL/SQL Records?
What is bind reference and how can it be created?
What is the use of partition by in sql?
What is cursor status?
What are the different types of database management systems?
What is type and rowtype in pl sql?
What is a column in a table?
What are triggers and its uses?