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
Name the operator which is used in the query for pattern matching?
What are the differences between in and exists clause?
Is primary key a clustered index?
What is sql server and ase?
Is sql an operating system?
how many tables will create when we create table, what are they? : Sql dba
What is delimiter in pl sql?
Explain the types of joins in sql?
Explain the components of sql?
what is the difference between blob and text? : Sql dba
Is oracle and sql same?
Is pl sql still used?
What is sql trigger example?
What will you get by the cursor attribute sql%notfound?
How global cursor can be declare with dynamic trigger ?