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

Published: 01 July 2018
on channel: 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...


Watch video Oracle interview question difference between null functions | NVL vs NVL2 vs NULLIF vs COALESCE online, duration hours minute second in high quality that is uploaded to the channel Siva Academy 01 July 2018. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 147,428 times and liked it 1.7 thousand visitors.