edited by
219 views
0 votes
0 votes

Consider the following statements :

  1. The primary key of a relation cannot contain null values.
  2. Unique Key can have null values.

Which among the following is true ?

  1. Both $\text{I}$ and $\text{II}$ are true
  2. Both $\text{I}$ and $\text{II}$ are false
  3. Only $\text{I}$ is true
  4. Only $\text{II}$ is true
edited by

1 Answer

0 votes
0 votes

A primary key column cannot contain NULL values, whereas a unique key can have NULL values, but only one NULL is allowed in a table. A primary key should be unique, but a unique key cannot necessarily be the primary key. The primary key by default is a clustered index where data is physically organized in the sequential index.

Reference: Difference between Primary Key and Unique key - javatpoint

Related questions

1 votes
1 votes
1 answer
1
soujanyareddy13 asked Jan 9, 2022
940 views
Let the predicates $D(x,y)$ mean “team $x$ defeated team $y$” and $P(x,y)$ mean “team $x$ has played team $y$”. The quantified formula for the statement that ther...
0 votes
0 votes
1 answer
2
soujanyareddy13 asked Jan 9, 2022
598 views
The File Transfer Protocol is built on ______________.data centric architectureservice-oriented architectureclient server architectureconnection-oriented architecture
0 votes
0 votes
1 answer
3
soujanyareddy13 asked Jan 9, 2022
525 views
More than one word is put in one cache block to:exploit the temporal locality of reference in a programexploit the spatial locality of reference in a programreduce the mi...
0 votes
0 votes
1 answer
4
soujanyareddy13 asked Jan 9, 2022
435 views
In $\text{DPSK}$ technique, the technique used to encode bits is :$\text{AMI}$Differential codeUnipolar $\text{RZ}$ formatManchester formate