0
A question that has arisen now, and which I always see in one way or another in Sqls of procedures, is the following: NOT TABELA.CAMPO IS NULL
or TABELA.CAMPO IS NOT NULL
. What is the difference in practice in terms of performance, execution time, from one to the other? Performance would be affected, depending on the number of records in the table and/or existence of the index in the field?
Related: Why NULL values are not selected?
– Marconi
In the question of table indexing: By default, relational databases ignore NULL values (because the relational model says that NULL means "not present"). Therefore, the index does not store NULL value, therefore if you have null condition in the SQL statement, the related index is ignored (by default).
– Don't Panic