Significance of NULL value and why should we avoid permitting null values

What is the significance of NULL value and why should we avoid permitting null values?

NULL value means that no entry has been made into the column. It states that the corresponding value is either unknown or undefined. It is different from zero or "". They should be avoided to avoid the complexity in select & update queries and also because columns which have constraints like primary or foreign key constraints cannot contain a NULL value.

What is the significance of NULL value and why should we avoid permitting null values?

Null means no entry has been made. It implies that the value is either unknown or undefined.

We should avoid permitting null values because

Column with NULL values can't have PRIMARY KEY constraints.
Certain calculations can be inaccurate if NULL columns are involved.
Difference between UNION and UNION ALL
What is the difference between UNION and UNION ALL? - UNION command selects distinct and related information from two tables. On the other hand.....
SQL Server - What is Log Shipping?
What is Log Shipping? - Log shipping enables high availability of database.....
Difference between a Local and a Global temporary table
What is the difference between a Local and a Global temporary table? - A local temporary table lives until the connection is valid....
Post your comment
Discussion Board
Not permitting null
I think not permitting null values is misguided. It''s possible that a null value is the best representation of the state of a thing. It also doesn''t require any space to store. I think a discussion of when to permit nulls and when not to would be more productive.
Bryan Martin 09-14-2017