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 is the use of double ampersand (&&) in sql queries?
What is implicit cursor in pl sql?
how to convert numeric values to character strings? : Sql dba
write an sql query to find names of employee start with 'a'? : Sql dba
What is a stored procedure in sql with example?
How do you add a column to a table?
What is meant by cursor in sql?
how to drop an existing table in mysql? : Sql dba
Should I use mbr or gpt?
Why function is used in sql?
what are the advantages of mysql in comparison to oracle? : Sql dba
How to pipe multiline string to isql?
How do you break a loop in pl sql?
What does the acronym acid stand for in database management?
How can a function retun more than one value in oracle with proper example?