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
Which nosql database is best?
How to load data with sql*loader?
Advantages and disadvantages of stored procedure?
Why we use stored procedure instead of query?
Can we connect to postgresql using sql developer?
What is data profiling in sql?
what is bcp? When does it used? : Sql dba
How do you use collections in procedure to return the resultset?
what does myisamchk do? : Sql dba
How much ram can sql express use?
List the various privileges that a user can grant to another user?
Explain what is rdbms?
What is sap sql anywhere?
Can 2 queries be executed simultaneously in a distributed database system?
How much does sql certification cost?