NVL2 Function in oracle sql plsql tutorial with example || Learn Database concept

Опубликовано: 12 Апрель 2024
на канале: internet-tutors
9
1

NVL2 Function in oracle sql plsql tutorial with example || Learn Database Concept

/*It is said to be the SQL General function which checks the first input parameter value, if the first input parameter value is not null then it will
return the second parameter.Otherwise,it will return the third input parameter value. It is an extended version of the NVL.*/

/*If we try to provide more than three input values, it will provide an error. It will be returning the value after not null expression.*/


select NVL2('A','B','C') AS OUTPUT from dual;

select NVL2('NULL','B','C') AS OUTPUT from dual;

select NVL2(NULL,'B','NULL') AS OUTPUT from dual;

select NVL2('X','NULL','Z') AS OUTPUT from dual;

select * from emp;

select ename, sal,comm,NVL2(comm,'SAL+COMM','SAL') from emp;

SELECT NVL2(100,200,300,400) AS OUTPUT from dual;

SELECT NVL2(60.89,59.73,40.66) AS OUTPUT from dual;

SELECT NVL2(1,'A','B') from dual;

SELECT NVL2('A','B',1) from dual;

SELECT NVL2('A',2,1) from dual;

SELECT NVL2(A,2,1) from dual;


На этой странице сайта вы можете посмотреть видео онлайн NVL2 Function in oracle sql plsql tutorial with example || Learn Database concept длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь internet-tutors 12 Апрель 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 9 раз и оно понравилось 1 зрителям. Приятного просмотра!