मराठी

Differentiate between primary key and candidate key.

Advertisements
Advertisements

प्रश्न

Differentiate between primary key and candidate key.

फरक स्पष्ट करा
Advertisements

उत्तर

Basis of Difference Primary Key Candidate Key
Meaning The key selected to uniquely identify rows. Any key eligible to be selected as the primary key.
Number in a table Only one primary key is selected. A table may have one or more candidate keys.
NULL values Cannot contain NULL values. Candidate keys must also uniquely identify records and are normally not null.
Selection Chosen from the candidate keys. May or may not be selected as the primary key.
Example AdNo selected as the key. Both AdNo and Name may be candidate keys.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 9: Databases Concepts and SQL - EXERCISE [पृष्ठ १७४]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
पाठ 9 Databases Concepts and SQL
EXERCISE | Q 15. | पृष्ठ १७४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×