SQL questions from Presidio data engineering interviews.
These sql questions are sourced from Presidio data engineering interviews. Each includes an expert-level answer. This set leans toward the medium-difficulty band most real interviews actually live in (8 of 16). Recurring themes are join, etl, and sql — these patterns appear most often in real interviews and reward the deepest preparation. Many of these questions also surface at Swiggy 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 16 curated questions: 7 easy, 8 medium, and 1 hard. There's a strong foundation of fundamentals-focused questions — ideal for building confidence before tackling advanced topics.
The most frequently tested areas in this set are join (4), etl (4), sql (4), partition (3), spark (3), and bigquery (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?
Difference between ROW_NUMBER(), RANK(), and DENSE_RANK() with examples.
Difference between where and having clause with examples.
Explain the difference between UNION and UNION ALL.
What are primary keys and foreign keys? Why are they important?
What is a self-join, and when would you use it?
What is normalization and denormalization? When would you use each?
What is the difference between a clustered and non-clustered index?
What is the difference between a view and a materialized view?
What is the difference between DELETE and TRUNCATE?
Add Row Numbers using window function in PySpark
Database vs Data Warehouse vs Data Mart vs Data Lake
Difference Between Truncate/Delete and Union/Union All – Performance and Usage
How to Create Clustered and Non-Clustered Index – Syntax and Examples
Managed Table vs External Table
Write SQL query to find names starting with 'R' and ending with 't', sorted by first_name descending
Get full access to 1,800+ expert answers, AI mock interviews, and personalized progress tracking.