Sometimes we put certain restrictions on the type of data that can be inserted in one or more columns of a table. This is done by ___________.
Sometimes we put certain restrictions on the type of data that can be inserted in one or more columns of a table. This is done by ___________.
Solution
A data constraint is a rule applied to one or more columns of a table that limits the type or values of data that can be inserted. Examples are NOT NULL, UNIQUE, PRIMARY KEY, CHECK and DEFAULT.
Option 1: metadata is data about data (column names, data types, table structure). It describes the data but does not restrict it.
Option 3: a database schema is the overall design or structure of the database, not a rule on column values.
Option 4: a database instance is the snapshot of data stored in the database at a particular moment.
Related questions:
2025: 14 May Shift 1
2025: 20 May Shift 1
2025: 3 June Shift 2
2025: 13 May Shift 2