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 / apoorva garg
select a,b,
CASE WHEN (a>b) THEN a
ELSE b
END output
from a
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
How to process query result in pl/sql?
What is the difference between sql, mysql and sql server?
Why do we need pl sql?
What is the purpose of cursors in pl/sql?
What is a delimiter in sas?
what are properties of a transaction? : Sql dba
What is difference between sql and oracle?
what is 'mysqladmin' in mysql? : Sql dba
What is user in sql?
What is file based approach?
Why sql query is slow?
What are the advantages of indexing?
How do I find sql profiler?
what are the differences among rownum, rank and dense_rank? : Sql dba
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql