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 do I run pl sql in sql developer?
How can you fetch first 5 characters of the string?
tell me about various levels of constraint. : Sql dba
How do you explain an index number?
what is the difference between cluster and non cluster index? : Sql dba
Is primary key clustered index?
How do I upgrade sql?
Why do we use partitions in sql?
what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba
How to order siblings in oracle hierarchy queries?
how to create a table index in mysql? : Sql dba
What is %s in sql?
what is meant by nl2br()? : Sql dba
What is meaning of <> in sql?
What is rank dense_rank and partition in sql?