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
What is the difference between stored procedure and view?
Which is faster joins or subqueries?
What is difference between inner join and cross join?
Which certification is best for sql?
Explain locks? : Transact sql
What is string join?
What can I use instead of union in sql?
Is left join inner or outer by default?
Is sql pronounced sequel or sql?
Why do we need view in sql?
what is bdb (berkeleydb)? : Sql dba
What are the advantages of sql? Explain
What is substitution variable in pl sql?
Is sql sequential or random?
What is nvarchar max in sql?