SQL questions from Nihilent data engineering interviews.
These sql questions are sourced from Nihilent data engineering interviews. Each includes an expert-level answer. This set leans toward the medium-difficulty band most real interviews actually live in (3 of 7). Recurring themes are partition, join, and window — these patterns appear most often in real interviews and reward the deepest preparation. Many of these questions also surface at FedEx Dataworks and Datametica, so the preparation transfers across companies. Average answer is around 1 minute of reading — plan roughly 1 hour to work through the full set thoughtfully.
This collection contains 7 curated questions: 2 easy, 3 medium, and 2 hard. The balanced mix of difficulties makes this set suitable for engineers at any career stage.
The most frequently tested areas in this set are partition (5), join (3), window (2), optimization (1), and sql (1). Focusing on these topics will give you the highest return on your preparation time.
Start with the easy questions to warm up and solidify fundamentals. Medium-difficulty questions form the bulk of real interviews — spend the most time here and practice explaining your reasoning out loud. Hard questions often appear in senior and staff-level rounds; attempt them after you're comfortable with the basics. For each question, try answering before revealing the solution. Use our AI Mock Interview to simulate real interview conditions and get instant feedback on your responses.
Explain the differences between Repartition and Coalesce. When would you use each?
Explain the types of triggers in ADF, including schedule, tumbling window, and event-based triggers.
Joins and window functions - INNER, LEFT, RIGHT, FULL OUTER, ROW_NUMBER(), RANK(), DENSE_RANK()
Optimization techniques - partitioning, caching, broadcast joins, bucketing
Removing duplicates - ROW_NUMBER() or DISTINCT
Serverless vs. Dedicated SQL pools
Write a query for second-highest salary using LIMIT, OFFSET, or ROW_NUMBER()
Get full access to 1,800+ expert answers, AI mock interviews, and personalized progress tracking.