From the course: Database Design Fundamentals
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
What is a null?
From the course: Database Design Fundamentals
What is a null?
- [Instructor] In database design, a NULL represents the absence of a value in a particular field or column. Imagine you're filling out a form and there's a question you don't have an answer to, so you leave it blank. In a database, that blank space is represented by a NULL. It's different from a zero, an empty string or any other value. NULL specifically means "no value." For example, if you're tracking someone's age, a value of zero means the person is a newborn, while NULL means their age is unknown. Special behavior in queries happen when you have a NULL. When you run searches or calculations in a database, NULL values are treated differently. For example, if you try to add numbers together and one of them is a NULL, the result will be a NULL value because the database can't calculate with a missing value. When designing a database, it's important to keep data integrity in mind at all times. It is easy to make a decision that you will make every field in your database mandatory so…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Data types that are key to relational databases6m 21s
-
(Locked)
How rows and columns impact database design4m 12s
-
(Locked)
Types of relationships1m 11s
-
(Locked)
Defining primary keys3m 27s
-
(Locked)
Automatically increment a field1m 41s
-
(Locked)
The importance of foreign keys2m 21s
-
(Locked)
What is a null?1m 55s
-
(Locked)
Naming convention importance in relational databases2m 41s
-
-
-
-