Null

Why Trust Techopedia

What Does Null Mean?

Null, in a database context, is the total absence of a value in a certain field and means that the field value is unknown. Null is not the same as a zero value for a numerical field, text field or space value. Null implies that a database field value has not been stored.

Advertisements

Techopedia Explains Null

A null cannot be compared to a value. For example, if a query is directed to a Customer_Addresses table to retrieve all customers without email addresses, then the Structured Query Language (SQL) query cannot be written as follows: SELECT * FROM Customer_ Addresses WHERE Email_Address=null. Instead, so as not to introduce a comparison with a null, the query must be written as follows: SELECT * FROM Customer_ Addresses WHERE Email_Address IS null.

When the values in a column containing nulls are counted, nulls are not included in the results. For example, there are 200 customers in the Customer_ Addresses table, and 30 have nulls in the Email_Address column. Doing a count using the Email_Address column will return a result of 170.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.