1,495 views
3 votes
3 votes
Primary key cannot be NULL . But is there any constraint on prime attributes also?

Can they be NULL?

1 Answer

Best answer
5 votes
5 votes

What are prime attributes?

That are part of some candidate key.

Candidate key has to be unique and minimal,there is not restriction of null and not null on candidate key.It may or may not null.

But when i choose one primary key from candidate keys(In case multiple candidate keys),then i have to choose the one which  is not null because it is primary key definition(Non null candidate key).

Now remaining candidate keys becomes the alternate keys .And alternate key can be Null.Alternate key subset can be null.

So,which means prime attributes can be Null.

More strict can be :- If a prime attribute is part of primary key,then it can't be Null.Otherwise it may or may not Null

selected by

Related questions

0 votes
0 votes
0 answers
1
Deepalitrapti asked Aug 21, 2018
333 views
1 votes
1 votes
1 answer
2
srestha asked Apr 11, 2018
1,548 views
$AB\rightarrow CD$$CD\rightarrow AB$$A\rightarrow C$Is it in 3NF or BCNF?Is prime attribute - prime attribute dependency is there in BCNF?
4 votes
4 votes
5 answers
3
lokopi asked Nov 9, 2017
5,948 views
R always in "3NF" but "may not BCNF"T/F and why?
1 votes
1 votes
3 answers
4
ukn asked Jan 4, 2017
910 views