Computer Science
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
Relational Database
2 Likes
Answer
ID
Reason — The "ID" attribute serves as a unique identifier for each student, making it suitable for use as a primary key.
Answered By
1 Like
Related Questions
Which of the following attributes cannot be considered as a choice for primary key ?
- Id
- License number
- Dept_id
- Street
An attribute in a relation is a foreign key if it is the …………… key in any other relation.
- Candidate
- Primary
- Super
- Sub
Which of the following is not a legal sub-language of SQL ?
- DDL
- QAL
- DML
- TCL
Fill in the blanks:
Collection of logically related data tables is called a _________.