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
What is partition in sql query?
how can we know the number of days between two given dates using mysql? : Sql dba
Can you select everything, but 1 or 2 fields, without writer's cramp?
Is vs as in pl sql?
How do you optimize a query?
What is java sql drivermanager?
Explain aggregate functions are available there in sql?
Does sql view stored data?
What can you do with pl sql?
Which sorts rows in sql?
What are pl/sql cursor exceptions?
How do you copy a table in sql?
How do I start sql profiler?
What are the differences between in and exists clause?
how to increment dates by 1 in mysql? : Sql dba