A default is not a missing-value rule

A museum plans this column declaration for a new table:


SQL
crate_code VARCHAR(16) DEFAULT 'unassigned'


Staff require explicitly supplied NULL values to be rejected, while an empty text string may remain valid. Which two-keyword SQL clause should be added to the declaration?

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More SQL Basics Questions: