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 the basic form of sql query?
what are the t string functions available in tsql? : Transact sql
What are % type and % rowtype?
What is on delete restrict?
What is delete command in sql?
Is like operator in sql case sensitive?
Do ddl statements need commit?
What is clause in sql?
What is latest version of sql?
Are subqueries better than joins?
What are reports usually used for?
what is the bond code in materialized view?
Which version of sql do I have?
Can we create clustered index without primary key?
What is using in sql?