Computer Science
Which of the following attributes cannot be considered as a choice for primary key ?
- Id
- License number
- Dept_id
- Street
Relational Database
2 Likes
Answer
Street
Reason — Attributes "Id," "License number," and "Dept_id" are unique identifiers and can be suitable choices for a primary key. However, "Street" might not be unique for each tuple, as multiple tuples could have the same street value, making it unsuitable for a primary key.
Answered By
1 Like
Related Questions
The term …………… is used to refer to a field in a table.
- Attribute
- Tuple
- Row
- Instance
A …………… is a property of the entire relation, which ensures through its value that each tuple is unique in a relation.
- Rows
- Key
- Attribute
- Fields
An attribute in a relation is a foreign key if it is the …………… key in any other relation.
- Candidate
- Primary
- Super
- Sub
Consider the table with structure as :
Student(ID, name, dept name, tot_cred)
In the above table, which attribute will form the primary key ?
- Name
- Dept
- Total_credits
- ID