DataEngPrep.tech
QuestionsBlogStore
Get PDF Bundle

Interview Questions

Real questions from top companies in SQL

700+ Easy450+ Medium650+ Hard
All CategoriesBehavioralSpark/Big DataSQLPython/CodingSystem Design/ArchitectureCloud/ToolsGeneral/Othereasymediumhard
1

Finding nth Highest Salary within each department

SQLmedium
2

Given a CSV file with raw customer transactions, design an ETL pipeline that cleans data, aggregates total sales by region and product, and loads into target table

SQLhard
3

Given a complex nested query, how would you refactor it for better readability and efficiency?

SQLmedium
4

Given a dataset, perform transformations: Filter rows where sales > 1000, Add a new column calculating a 10% discount on sales, Group data by region and calculate total revenue.

SQLeasy
5

Given a table of sales data, use window functions to calculate a running total.

SQLmedium
6

Given a table with 10 records and another with 4 records, how many records result from a cross join?

SQLmedium
7

Given a table with sales data, write a query to find consecutive days with decreasing revenue.

SQLmedium
8

Given an unoptimized query execution plan, how would you diagnose and improve performance?

SQLmedium

+20 More Questions with Expert Answers

Get the complete 1,800+ question library with detailed, expert-level answers covering SQL, Spark, System Design, Python, Cloud, and Behavioral topics.

Get PDF Bundle — from $21Try Free Sample
Previous1...910111213...25Next