CS FundamentalsHardGATE CS
A ternary relationship Supplies links Supplier, Part and Project, and the rule is: for a given project and part there is at most one supplier. Which attributes form the key of the Supplies relation?
- A. (project, part)
- B. (supplier, part)
- C. (supplier, project, part)
- D. (supplier, project)
Correct answer: A. (project, part)
The rule says (project, part) → supplier, so that pair identifies a Supplies tuple. All three keys together form a superkey but not a minimal one; the other pairs allow several tuples per pair.
More DBMS and SQL questions
- The system crashes after the last record of this log (immediate modification; <Ti, X, old, new>; at the checkpoint all dirty pages were…
- A buffer manager uses NO-STEAL (pages with uncommitted changes are never written to disk) and FORCE (all pages a transaction changed are…
- T1 reads the balance of account 7, then T2 updates that same row and commits, then T1 reads the row again and sees a different value. No…
- No transaction has committed. T1 writes A; T2 reads A and writes B; T3 reads B; T4 reads C, which only T5 wrote; T5 reads nothing written…
- A table has 1,000,000 rows in 10,000 blocks. A range predicate selects 20% of the rows, which are spread evenly across the table. There is…
- Table T(a, b, c) has a composite B+ tree index on (a, b), and the query is SELECT b FROM T WHERE a = 5. What is the main benefit of this…