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.
What is the Percentage of women in the total population of Uttar Pradesh?
Who was re-elected as the President of Venezuela in July 2024?
Industrialist Shiv Nadar is related to which organization?
Which country is referred to as the 'Coffee Bowl of the World'?
Which two countries have signed a virtual agreement on the Joint Declaration of Intent on a Hydrogen Task Force?
Guru Ravidas of Sikh religion was born in which city of Uttar Pradesh?
Which term is absent from the Preamble of the Indian Constitution?
Which Indian classical dance form is associated with the state of Odisha.
Which element is represented by the symbol 'Fe' in the periodic table?
Which city is known as the 'Leather City of the World'?