Introduction
The NOT NULL constraint makes sure a column always has a value. It stops empty or missing data in that column.
When you want to make sure every user has an email address in your database.
When storing product prices, and you want to avoid missing price values.
When recording dates of events that must always be known.
When you want to ensure a username is always provided during registration.
When you want to prevent saving incomplete records in any table.