DEVFYI - Developer Resource - FYI

How do you implement the If statement in the Select Statement

ORACLE Interview Questions and Answers (Part 5)


(Continued from previous question...)

824. How do you implement the If statement in the Select Statement

We can implement the if statement in the select statement by using the Decode statement. e.g select DECODE (EMP_CAT,'1','First','2','Second'Null); Here the Null is the else statement where null is done .

(Continued on next question...)

Other Interview Questions