Question 71
HardWhat does a multivalued dependency A →→ B mean?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
What does a multivalued dependency A →→ B mean?
A determines exactly one B
Each A value is associated with a set of B values independent of the other attributes
B determines A
A and B are both keys
Sign up free to see the answer and a step-by-step explanation.
Course(course, teacher, book) records that each course has a set of teachers and a set of books, independently. Which normal form does it violate?
4NF
2NF
1NF
3NF
Sign up free to see the answer and a step-by-step explanation.
Which normal form deals with join dependencies that are not implied by candidate keys?
5NF (project–join normal form)
3NF
BCNF
4NF
Sign up free to see the answer and a step-by-step explanation.
Employee(emp_id, name, project_id, project_name, hours) has key (emp_id, project_id). Which dependency shows it is not in 2NF?
(emp_id, project_id) → hours
project_id → project_name
emp_id → emp_id
hours → name
Sign up free to see the answer and a step-by-step explanation.
How many of these FDs are trivial: AB → A, A → A, AB → C, ABC → BC?
4
2
1
3
Sign up free to see the answer and a step-by-step explanation.
A reporting dashboard joins five normalised tables on every page load and is too slow. Which change is the textbook denormalisation fix?
Remove all indexes
Split the tables further
Store a pre-joined, redundant summary table (or materialised view) and refresh it regularly
Move the data to a text file
Sign up free to see the answer and a step-by-step explanation.
R(A, B, C, D) has FDs A → B, BC → D and D → A. How many candidate keys does it have?
1
2
3
4
Sign up free to see the answer and a step-by-step explanation.
A table is in 1NF, its key is a single column, and every non-key column depends only on the key. Which normal forms does it certainly satisfy?
2NF and 3NF (and BCNF if no other determinants exist)
Only 1NF
None
4NF and 5NF
Sign up free to see the answer and a step-by-step explanation.
Which anomaly occurs when you can't record a new department until it has at least one employee, because both are in one table keyed by emp_id?
Update anomaly
Join anomaly
Deletion anomaly
Insertion anomaly
Sign up free to see the answer and a step-by-step explanation.
Splitting R(A, B, C) with FDs A → B and B → C into R1(A, B) and R2(B, C) is:
Lossless and dependency-preserving
Lossless but loses B → C
Lossy
Neither
Sign up free to see the answer and a step-by-step explanation.