Quick Revision

GK One-Line Question & Answer

15541+ short questions with short answers, covering every category and sub-category on the site — no long articles to scroll through. Good for a fast recap before an exam, or a few minutes of daily practice.

DBMS → Normalization 19

Which violates 1NF?
Column storing comma-separated multiple phone numbers
click to copy
2NF is violated by
Partial dependencies: non-key attribute depends on part of composite PK
click to copy
3NF is violated when
Non-key attribute transitively depends on PK through another non-key attribute
click to copy
BCNF requires: for every non-trivial FD X→Y
X must be a superkey
click to copy
3NF decomposition guarantees
Both lossless join AND dependency preservation
click to copy
BCNF decomposition guarantees
Lossless join always but may NOT preserve all dependencies
click to copy
4NF eliminates
Multi-valued dependencies (MVDs)
click to copy
5NF eliminates
Join dependencies
click to copy
Insertion anomaly means
Cannot insert certain data without inserting unrelated data
click to copy
Deletion anomaly means
Deleting one row unintentionally destroys other needed information
click to copy
Update anomaly means
Updating one fact requires changing multiple rows causing inconsistency risk
click to copy
BCNF is preferred over 3NF when
Eliminating ALL FD-based redundancy is the priority (some FDs can be lost)
click to copy
Denormalization is performed to
Improve query performance by intentionally adding some redundancy
click to copy
When relation has only one candidate key, 3NF and BCNF are
Equivalent (same set of qualifying relations)
click to copy
Practical normalization typically stops at
3NF or BCNF (balance between redundancy and performance)
click to copy
BCNF violation: R(A,B,C) with AB→C and C→B. C→B violates BCNF because
C+ = {C,B} ≠ {A,B,C} so C is NOT a superkey
click to copy
Moving from 2NF to 3NF removes
Transitive dependencies
click to copy
2NF ensures non-key attributes depend on
The ENTIRE primary key
click to copy
DKNF (Domain-Key Normal Form) is
Theoretical NF where every constraint follows from domain and key constraints
click to copy

DBMS → Introduction to DBMS 19

Armstrong's Reflexivity: if Y⊆X then
X→Y
click to copy
Armstrong's Augmentation: if X→Y then
XZ→YZ
click to copy
Armstrong's Transitivity: if X→Y and Y→Z then
X→Z
click to copy
Armstrong's axioms are
Sound and complete
click to copy
Attribute closure X+ is computed by
Starting with X and iteratively adding attributes determined by FD set F
click to copy
If A+ = all attributes of R(A,B,C,D) then A is
A superkey determining all attributes
click to copy
A canonical cover (Fc) is
Minimal equivalent FD set with no redundancy
click to copy
A prime attribute is
Part of at least one candidate key
click to copy
A non-prime attribute is
NOT part of any candidate key
click to copy
Dependency preservation means
Every FD can be verified from decomposed relations without joins
click to copy
Union rule from Armstrong: if X→Y and X→Z then
X→YZ
click to copy
Decomposition rule: if X→YZ then
X→Y and X→Z
click to copy
Trivial FD X→Y means
Y⊆X (B is a subset of A)
click to copy
Multi-valued dependency A→→B means
For each A value, B values independent of all other attributes
click to copy
Extraneous attribute in FD can be removed without
Changing the overall closure implied by FD set F
click to copy
Non-loss decomposition is another term for
Lossless-join decomposition
click to copy
A relation with single-attribute PK is automatically in
2NF (no partial dependencies possible without composite key)
click to copy
Pseudotransitivity rule: if X→Y and WY→Z then
WX→Z
click to copy
StudentName depends on StudentID in PK(StudentID,CourseID). This is what violation?
2NF - partial dependency
click to copy

DBMS → Joins 2

Lossless-join decomposition means
Join of decomposed relations gives exactly the original relation without spurious tuples
click to copy
Lossless-join condition for R→R1,R2: the condition is
R1∩R2 → R1 OR R1∩R2 → R2 (intersection is superkey in one decomposed relation)
click to copy