Relational Databases and Query Processing
-
Relational Keys and Minimal Uniqueness
Distinguish a superkey from a candidate key and check uniqueness against schema assumptions rather than accidental sample data.
-
Functional Dependencies and Attribute Closure
Compute the attributes determined by a set and use the closure to prove implication and test candidate keys.
-
Lossless Joins in Relational Decomposition
Show when projecting a relation into two schemas and joining them reconstructs each tuple without producing spurious combinations.
-
Dependency Preservation and Normal Form Tradeoffs
Check whether each original functional dependency follows from projected rules that can be enforced without rejoining the tables.
-
Relational Algebra and Expression Trees
Explain selection, projection and join as typed transformations of rows and identify which variables must remain available to later operators.
-
SQL Three-Valued Logic and Missing Comparisons
Evaluate conditions with TRUE, FALSE and UNKNOWN and trace which rows survive filtering.
-
Bag Semantics and Join Multiplicities
Calculate how multiplicities combine in SQL-style bag operations and identify where duplicate elimination changes later aggregates.
-
Join Cardinality from Key Frequencies
Derive the output size of an equijoin using matching frequency products and identify why a hot key can dominate the result.
-
Relational Rewrite Laws and Filter Placement
Push a predicate across a join only when the referenced fields and row-preservation rules justify it.
-
Nested Loops, Indexed Lookups, and Join Reuse
Estimate a join that iterates one input and queries the other, then decide when repeated probe keys can share work.
-
Hash Join Build, Probe, and Partition Spill
Separate the build and probe phases of an equijoin and account for memory limits, collisions, and skew.
-
Merge Joins and Repeated Key Runs
Join two ordered inputs by advancing the smaller key and handle duplicate runs without silently dropping pair combinations.
-
External Merge Sort and Temporary Runs
Size sorted runs and merge fan-in under a page-buffer limit and calculate how many complete data passes are required.
-
Histograms and Selectivity Estimation
Estimate a range from bucket counts and distinguish information about the whole bucket from assumptions about values within it.
-
Predicate Selectivity Under Correlation
Compare a product-of-marginals estimate with an exact joint count and trace its effect on plan choice.
-
Covering Indexes and Index-Only Scans
Identify when a leaf entry has every requested value and when row visibility still requires another access.
-
Composite Indexes and Lexicographic Ranges
Use the order of a two-column index to identify contiguous search ranges and explain which predicates can narrow them.
-
Reading an Execution Plan and Actual Row Counts
Locate an estimation error at the operator that introduced it and distinguish per-loop measurements from total work.
-
Recursive Queries and Working Relations
Evaluate reachability by repeatedly extending a working relation and see how row identity determines whether cyclic paths terminate.
-
Semijoins, Antijoins, and Existential Filters
Preserve an outer row based on existence of a match and avoid accidental multiplicity changes or null-sensitive comparisons.