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

Write a SQL query to calculate the highest salary in each department using a window function

SQLmedium
2

Write a SQL query to calculate the running total of sales per region, partitioned by year.

SQLmedium
3

Write a SQL query to detect customers who have not placed a second order in 90 days.

SQLmedium
4

Write a SQL query to find departments with more than 10 employees.

SQLmedium
5

Write a SQL query to find distinct IDs from a table where the count is more than 1 and greater than 200.

SQLeasy
6

Write a SQL query to find employees earning the second-highest salary.

SQLmedium
7

Write a SQL query to find house with Avg(score) > 70.

SQLmedium
8

Write a SQL query to find the second highest salary in each department.

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...2122232425Next