sql
FDE interview questions tagged sql, across every topic.
19 questions · 10 unlocked for you
Concepts behind "sql"
The curriculum that explains the ideas these questions test.
Foundational
SQL Window FunctionsWindow functions compute a value across a set of rows related to the current row without collapsing them, so you can rank, compare to a neighbor, or run a cumulative total while keeping every row. They are how analysts answer 'compared to what?' questions in pure SQL, and most interviewers use them to tell people who know SQL from people who know GROUP BY.🗄️ Data & SQL Engineering
Advanced
Gaps and IslandsGaps and islands is the SQL pattern for collapsing a sequence of rows into the contiguous runs (islands) and the breaks between them (gaps). The trick is a difference of two row numbers that stays constant inside a run, giving every row in the same island an identical group key you can then aggregate. It powers sessionization, login streaks, and contiguous date-range queries, and interviewers love it because the naive self-join answer is both slow and wrong on ties.🗄️ Data & SQL Engineering🔒 Premium
Advanced
Query Optimization and Execution PlansWhen a customer says a query is slow, the answer lives in the execution plan, not in intuition. Reading a plan tells you whether the engine is scanning when it should seek, exploding rows in a join, or shuffling across a network, and those three causes have nothing in common except the symptom.🗄️ Data & SQL Engineering🔒 Premium
Advanced
SQL vs NoSQL: Choosing a Data StoreThe choice is not relational versus modern. It is whether your access patterns are known and your data relational, in which case a relational database is almost always right, or whether one specific property (scale-out writes, a flexible document shape, traversal) dominates enough to give up joins and transactions for it.🗄️ Data & SQL Engineering🔒 Premium
