L&T
Company
Programming
Program
What is the difference between primary key and unique key?
A)Primary Key is used to identify a column (record) in a table, whereas Unique-key is to prevent duplicate values in a row (with the exception of a null entry) B)By default SQL-engine creates Non-Clustered Index on primary-key if not exists and Clustered Index on Unique-key C)Primary key does not include Null values, whereas Unique-key can
D)Table can have multiple primary key but can have single Unique-key E)You can change or delete primary values, but Unique-key values can not be changed
Read Solution (Total 2)
-
- c)Primary key does not include Null values, whereas Unique-key can
- 4 years agoHelpfull: Yes(2) No(0)
- A is the right Solution
- 4 years agoHelpfull: Yes(0) No(2)
L&T Other Question