SQL questions from Presidio data engineering interviews.
These sql questions are sourced from Presidio data engineering interviews. Each includes an expert-level answer.
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
Download the complete interview prep bundle with expert answers. Study offline, on your commute, anywhere.