CS Professional · Artificial Intelligence, Data Analytics and Cyber Security - Laws and Practice · Database Management
In an Employee table, Emp_ID is the primary key, and columns are Dept_ID and Dept_Head, where Dept_ID determines Dept_Head. A company wants to remove the redundancy that causes an update anomaly when a department head changes, while keeping the DPDP-style requirement of accurate data. Which design step is correct?
Create a separate Department table holding Dept_ID and Dept_Head, and keep Dept_ID in Employee as a foreign key. This removes the transitive dependency, achieving Third Normal Form, so a change of head is updated once, avoiding anomalies and keeping data accurate.
- AMove Dept_ID and Dept_Head to a separate Department table, keeping Dept_ID in Employee as a foreign keyCorrect
- BCombine Dept_Head into the primary key of Employee
- CDuplicate Dept_Head in every Employee row to speed up reads
- DDelete Dept_ID from Employee and keep only Dept_Head
Explanation
Emp_ID -> Dept_ID -> Dept_Head is a transitive dependency violating 3NF. Splitting into Employee and Department tables with a foreign key stores each head once, so one update fixes all rows and keeps data accurate. Duplicating data worsens anomalies.
Did you get it right without looking?
One question tells you little. A timed set on Database Management shows your real accuracy, how long you take and where you lose marks.
More Database Management questions
- In the three-schema architecture of a DBMS, which level describes how data is physically stored on disk, including file organisation and ind…
- A bank's database has entities Customer and Account. One customer may hold many accounts, but each account belongs to exactly one customer. …
- In a relational database table, a column (or set of columns) chosen to uniquely identify each row, which cannot hold NULL values and cannot …
- A telecom company handles huge call-record streams arriving at high speed, in text, audio and log formats, from many sources. Which set of c…
- A firm's database administrator runs a DELETE statement without a WHERE clause inside a transaction that has not been committed, then realis…
- A fintech company mines its big-data store of customer records to profile individual behaviour and sells the profiles to advertisers. The re…