NULLs

In the real world of information management, data is often missing or incomplete: You forgot to ask for a phone number; a respondent to a questionnaire refuses to divulge his age; a book has been contracted, but the publication date has not been set. Such missing information leaves gaping holes in your set of tidy tables.

The unsightliness of these holes is not the real problem, of course. The danger is that they might introduce inconsistencies into your database. In order to preserve the integrity of your data, the relational model, and Codd's rules, use the concept of nulls to handle missing information.

“NULL” does not mean zero or blank. Rather, it indicates that a value is unknown, unavailable, or inapplicable. Essentially the use ...

Get Practical SQL Handbook, The: Using SQL Variants, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.