CS FundamentalsHardProduct-company MCQ pattern
An ER design has entity sets E1 and E2 joined by a one-to-one relationship R. Both E1 and E2 participate TOTALLY in R, and neither has a multivalued attribute. What is the minimum number of relational tables needed?
- A. 2
- B. 3
- C. 4
- D. 1
Correct answer: D. 1
With 1:1 and total participation on both sides, every E1 entity pairs with exactly one E2 entity and vice versa, so E1, R and E2 can be merged into one table. With partial participation on one side, 2 tables are needed to avoid NULLs.
More DBMS and SQL questions
- Assertion (A): In SQL, WHERE dept = NULL returns no rows even when dept contains NULL values. Reason (R): A comparison with NULL using =…
- How many of the following statements are correct? 1. A phantom read occurs when re-running a query with the same predicate returns new…
- Match each concept with its description: (P) Partial dependency (Q) Transitive dependency (R) BCNF violation (S) Multivalued dependency…
- How many of the following statements about indexing are correct? 1. A B+ tree stores data pointers only in its leaves, which are linked…
- A relation is in 2NF, but a non-key attribute depends on another non-key attribute (a transitive dependency on the key). Which normal form…
- Which SQL command removes a table completely — its rows, its structure and its definition in the catalogue?