Question
In a relational database, which key uniquely identifies
tuples within a table and can never contain NULL values?Solution
A Primary Key uniquely identifies each record (or tuple) in a table and cannot contain NULL values. It enforces entity integrity, ensuring that every row in a table has a unique identifier. For example, in a table of employees, an employee ID serves as a primary key, ensuring no duplicate or NULL entries exist. Why Other Options Are Incorrect:
- Foreign Key: Links one table to another and can contain NULL values in some cases; its purpose is to enforce referential integrity, not uniqueness within its table.
- Candidate Key: A potential key that can uniquely identify tuples but is not chosen as the primary key.
- Alternate Key: A candidate key not selected as the primary key but still capable of uniquely identifying records.
- Composite Key: A primary key consisting of multiple columns but is a type of primary key, not a separate concept.
George Cohen passed away recently, he was a footballer from which country?
Which of the following pairs of dance with their states are correctly matched?
i. Kollattam - Andhra Pradesh
Who attacked and looted the famous Somnath temple in 1026 AD?
When was the resolution to divide U.P. into four States was passed by the U.P. Legislative Assembly?
What is the primary use of gypsum in cement.
Which of the following states is NOT included in the development of 12 industrial smart cities approved by the Union Cabinet?
The Battle of Plassey was fought in which year?
In the Henley Passport Index 2024, where does India stand in terms of its ranking?
 The Infant Protection Day is observed annually on?
 When do we celebrate World Radiography Day?