Oracle interview question difference between null functions | NVL vs NVL2 vs NULLIF vs COALESCE

Опубликовано: 01 Июль 2018
на канале: Siva Academy
147,428
1.7k

Difference between NVL,NVL2, NULLIF and COALESCE

NVL function will check whether the first input parameter is null, if first input parameter is null then the function returns the second parameter value as output.

NVL2 function will check the first parameter, and return second parameter if the first parameter is not null, otherwise returns third parameter.

NULLIF will compare the input parameters ( first and second parameter ), and returns NULL of both are same, otherwise returns the first parameter value.

COALESCE, returns the first not null expression in the given input parameters.

--------------------------------------------------------------------------------------------------------

List of all the SQL and PLSQL interview questions
https://easy-learning-tech.blogspot.c...


Смотрите видео Oracle interview question difference between null functions | NVL vs NVL2 vs NULLIF vs COALESCE онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Siva Academy 01 Июль 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 147,428 раз и оно понравилось 1.7 тысяч людям.