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 many types of index are there?
What do you mean by dbms? What are its different types?
Which is better varchar or nvarchar?
What is normalization in a database?
What are the different ways to optimize a sql query?
What are the types of sql commands?
What are the string functions in sql?
How do I partition a table in sql?
How do I start sql from command line?
What is cursor in pl sql with examples?
Can a table have no primary key?
Can we rollback truncate?
what are date and time data types? : Sql dba
Can I join the same table twice?
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?