Multiple choice technology databases

Can you add not null column to a table already containing data ?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

You can add a NOT NULL column to a table with existing data if you provide a DEFAULT value. Without a default, the operation would fail because existing rows would have NULL values for the new column. The question is technically true but omits the important default value requirement.