CS FundamentalsHardGATE CS
An ER diagram has entity Employee (key eid, composite attribute name, multivalued attribute phone), weak entity Dependent (partial key dname) identified by Employee through a 1:N relationship, and entity Project linked to Employee by the M:N relationship WorksOn. What is the minimum number of relations in a correct relational schema?
- A. 4
- B. 6
- C. 5
- D. 3
Correct answer: C. 5
Employee (with name flattened), EmpPhone for the multivalued attribute, Dependent (key eid + dname, absorbing its identifying relationship), Project and WorksOn: 5. Only the M:N relationship and the multivalued attribute need extra tables.
More DBMS and SQL questions
- A ternary relationship Supplies links Supplier, Part and Project, and the rule is: for a given project and part there is at most one…
- 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…