Computer Science

What constraint should be applied on a table column so that NULL is not allowed in that column, but duplicate values are allowed.

SQL Queries

1 Like

Answer

To ensure that NULL values are not allowed in a table column while allowing duplicate values, we should use the NOT NULL constraint. The NOT NULL constraint ensures that every entry in the specified column must have a value (i.e., it cannot be NULL), but it allows duplicate values.

Answered By

1 Like


Related Questions