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
What does sql stand for?
What are aggregate and scalar functions?
How to use transactions efficiently : transact sql
Does group by remove duplicates?
How many types of triggers exist in pl/sql?
Is sql a programming?
Can I create table without primary key?
What is a trigger in sql?
how to include comments in sql statements? : Sql dba
What are tuples in sql?
What are different types of keys?
What are the subsets of sql?
Why is pl sql used?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?
What is the difference between numeric and autonumber?