Computer Science, asked by khnaniya, 1 year ago

Which integrity constraint guarantees that every primary key attribute is not-null?

Answers

Answered by skothari1910simmi
0
not null constraint written with primary key


richdeepika: because primary key is a uniqe key ad its always having some value
Answered by mahimapanday53
1

Concept: Every relation must have a primary key, and the data values for that primary key must all be legitimate, according to the entity integrity rule, which is intended to ensure this. Every main key attribute is guaranteed to be non-null by entity integrity.

  • In a relational model, the main key fulfils the unique identification role.
  • Entity integrity refers to the fact that an entity that cannot be named is a contradiction in terms.
  • When no alternative value applies or when it's unclear what value should be used, the attribute is given a null value.

Given:  every primary key attribute is not-null

To find: Integrity constraint

Solution:

Every main key attribute is guaranteed to be non-null by entity integrity. In a relational model, the main key fulfils the unique identification role. Entity integrity refers to the fact that an entity that cannot be named is a contradiction in terms.

Hence, Entity integrity constraint guarantees that every primary key attribute is not-null.

#SPJ3

Similar questions