CS FundamentalsEasyAccenture · Capgemini pattern
A candidate key is best described as:
- A. Any set of attributes that uniquely identifies a tuple
- B. An attribute that references another table's key
- C. The key chosen by the designer to identify rows
- D. A minimal superkey: no proper subset of it is a superkey
Correct answer: D. A minimal superkey: no proper subset of it is a superkey
A superkey identifies tuples uniquely; a candidate key is a superkey with nothing removable. The one chosen among candidate keys is the primary key; a referencing attribute is a foreign key.
More DBMS and SQL questions
- In an ER diagram, entity sets Student and Course are related by a many-to-many relationship Enrols that has an attribute grade. What is…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Which mechanism does a DBMS mainly rely on to guarantee durability of committed transactions?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…