column A column b | output
10 7 | 10
5 8 | 8
7 -9 | 7
3 5 | 5
0 6 | 6

Write a sql query to print such output.

Answer Posted / satish tadepalli

select greatest(nvl(cola,0),nvl(colb,0)) from tablename

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of relationship are there?

733


What are joins in sql?

717


How to install oracle sql developer?

768


What is graph sql?

716


Why is nosql good?

773






What are the benefits of triggers?

887


How do you delete duplicates in sql query using rowid?

716


What is sqlerrm?

710


is it possible to pass an object or table to a procedure as an argument?

814


Explain the significance of the & and && operators in pl sql.

742


Does sql*plus have a pl/sql engine?

753


what is sql server agent? : Sql dba

770


what are all the different types of indexes? : Sql dba

710


How can one get sql*loader to commit only at the end of the load file? : aql loader

739


What is the difference between stored procedure and view?

733