Question
Which type of database key is a candidate key that has
not been chosen as the primary key?Solution
An Alternate Key is any candidate key that is not selected as the primary key of the table. Candidate keys are attributes (or combinations of attributes) that uniquely identify a row in a table. Among these, one is chosen as the primary key, while others are considered alternate keys. For example, in a table of students, both StudentID and Email might uniquely identify records. If StudentID is the primary key, Email becomes an alternate key. Alternate keys are useful for additional indexing or as foreign keys in related tables. Why Other Options Are Incorrect :
- Foreign Key : A foreign key establishes a relationship between two tables, linking a column to the primary key in another table.
- Composite Key : A composite key is made of two or more columns together acting as a primary key.
- Surrogate Key : This is a system-generated unique identifier for a row, not derived from application data.
- Super Key : A super key is a broader set of attributes that can uniquely identify a row, which may contain unnecessary attributes.
Consider the following statements-
Assertion (A) The loss of forest cover in India has been directly related to India's demographic transition.
Assertion (A) Aluminum is a green metal.
Reason (R) : It saves forests by taking the place of wood.
Select the correct answer from the cod...
The Pushkar Fair, also known as the Camel Fair, is held in which Indian state?
Who has been reappointed as the Chief of RAW?
Triveni Sangam of Uttar Pradesh is the place of confluence of which of the following rivers?
What is the increased limit for e-mandates per transaction for subscription to mutual funds, payment of insurance premiums, and credit card bill payments?
When is International Women's Day celebrated?
Which financial services provider launched the advanced ‘Push Provisioning’ platform?
The U.S. Indo-Pacific Command co-hosting Exercise Shanti Prayas IV with which country?
Which among the following states discovered Copper coins of Harshvardhan period, who ruled from 606 to 647 CE ?