Thanks for the question, Aditya.
Asked: April 28, 2016 - 6:17 am UTC
Last updated: May 01, 2016 - 10:56 am UTC
Version: 11g
Viewed 1000+ times
SQL> select 2 case when 1=1 then 'Y' end c1, 3 case when 1=0 then 'Y' end c2, 4 case when 1=0 then 'Y' else null end c3 5 from dual; C C C - - - Y
Aditya Mishra, April 29, 2016 - 5:51 am UTC
SQL> select 2 case when 1=1 then null end c1, 3 case when 1=0 then null end c2, 4 case when 1=0 then null else null end c3 5 from dual; C C C - - -
Laurent Schneider, April 29, 2016 - 1:39 pm UTC
Share and learn SQL and PL/SQL; free access to the latest version of Oracle Database!
Classes, workouts and quizzes on Oracle Database technologies. Expertise through exercise!