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 can you know that statistics should be updated?

597


What are inbuilt functions in sql?

588


explain the delete statements in sql

574


Is sqlite thread safe?

596


How delete all data from all tables in sql?

532






What are different sql data types?

501


How do I turn a list into a table?

502


What is the requirement of self-join?

536


What is dml with example?

511


What is normalization in sql?

519


Why are indexes and views important to an organization?

521


What is row_number () in sql?

533


What is audit logout in sql profiler?

585


Define join and name different types of joins?

511


what is 'mysqladmin' in mysql? : Sql dba

526