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 / phani kumar
select greatest(cola,colb) from tblname;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Which data dictionary views have the information on the triggers that are available in the database?
Can a foreign key be null?
What is dml with example?
What are the two types of exceptions in pl/sql?
what is the difference between a web-garden and a web-farm? : Sql dba
Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?
Why use subqueries instead of joins?
What is pl sql script?
Why do we need view in sql?
What is cursor in pl sql with examples?
What are the types of variables use in pl sql?
Mention what are the benefits of pl/sql packages?
What is bind variable in pl sql?
What is sql profiling in oracle?
What are the main features of cursor?