LNNVL FUNCTION IN ORACLE SQL | Check NULL value in SQL statement

preview_player
Показать описание
This video is the 5th video in the series of 'working with null', this video explains the working of the lnnvl function in oracle sql with simple and easy to understand example.

LNNVL provides a concise way to evaluate a condition when one or both operands of the condition may be null. The function can be used only in the WHERE clause of a query.

It takes as an argument a condition and returns TRUE if the condition is FALSE or UNKNOWN and FALSE if the condition is TRUE.

LNNVL can be used anywhere a scalar expression can appear, even in contexts where the IS [NOT] NULL, AND, or OR conditions are not valid but would otherwise be required to account for potential nulls. Oracle Database sometimes uses the LNNVL function internally in this way to rewrite NOT IN conditions as NOT EXISTS conditions.

In such cases, output from EXPLAIN PLAN shows this operation in the plan table output. The condition can evaluate any scalar values but cannot be a compound condition containing AND, OR, or BETWEEN.

Other Playlists:

Content and video created by : Kishan Mashru
Рекомендации по теме
Комментарии
Автор

Awesome video on LNNVL function.. it's very useful.. thanks a lot !!!

vallimuthaiyah
Автор

Hi Kishhan, thanks for the tutorial :). it really helps me a lot.
could you please explain about 'CAST' in Oracle

Balajionceagain