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
Is mariadb nosql?
Are sql database names case sensitive?
What are reports usually used for?
What are the two parts of design view?
What is dense_rank in sql?
How long will it take to learn pl sql?
What are the types of triggers in sql?
what are the performance and scalability characteristics of mysql? : Sql dba
What are the benefits of triggers?
Name some usages of database trigger?
Is subquery faster than join?
What makes a good primary key?
What is identity column in sql server?
How show all rows in sql?
What are different types of functions in sql?