Least You Need to Know: Relations in Databases and State Machines
Relations are not only abstract sets of ordered pairs. They appear in foreign-key links, join tables, dependency graphs, and state-transition systems used all over software engineering.
Least You Need to Know: GROUP BY, Aggregation, and NULL Semantics
Aggregation questions are about partitioning rows into groups, then summarizing each group carefully. The common traps are filtering at the wrong stage, forgetting how NULL behaves, and accidentally duplicating rows before aggregating.
Least You Need to Know: Indexes, Selectivity, and Cardinality Intuition
Index and query-plan interview questions are mostly about search-space pruning. Good indexes cut down candidate rows quickly; bad selectivity, tiny tables, or the wrong leading columns can erase that advantage.
Least You Need to Know: SQL Joins as Relation Operations
SQL joins are concrete relation operations. Interview questions about joins usually reduce to three ideas: which rows survive, when rows duplicate, and when missing matches turn into NULL values.
Least You Need to Know: Keys, Functional Dependencies, and Constraints
Database design questions are relation questions wearing engineering clothes. Keys identify tuples, foreign keys connect relations, and functional dependencies explain when one set of attributes determines another.