DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPacksBlog
ProLogin

Interview Questions

Real questions from top companies in SQL Β· medium

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

What metrics would trigger an auto-scaling event?

SQLmediumpartition0.4 min read
Capco
β†’
222

What metrics would you analyze to determine if your partitioning strategy is effective?

SQLmediumpartitionspark0.5 min read
PWC
β†’
223

What motivates you to join Morgan Stanley?

SQLmediumjoin0.4 min read
Morgan Stanley
β†’
224

What strategies would you use to manage dynamic partitions efficiently?

SQLmediumpartition0.6 min read
Capco
β†’
225

What types of columns support PARTITION_BY in BigQuery?

SQLmediumbigquerypartition0.4 min read
Aarete
β†’
226

When would you choose partitioning over bucketing, or vice versa?

SQLmediumjoinpartition0.5 min read
EPAM
β†’
227

Where is the PARTITION_BY option in the BigQuery UI?

SQLmediumbigquerypartition0.4 min read
Aarete
β†’
228

Why is HAVING clause used only after GROUP BY?

SQLmedium0.4 min read
Fossil Group
β†’
229

Why not use ROW_NUMBER() instead? Discuss pros and cons.

SQLmediumpartition0.4 min read
Bitwise
β†’
230

Why star schema? Compared with snowflake schema and normalized approaches.

SQLmediumjoinsnowflake0.5 min read
Daniel Wellington
β†’
231

Window Functions: ROW_NUMBER(), RANK(), PARTITION BY - produce output using dataset

SQLmediumpartitionwindow0.4 min read
Wolters Kluwer
β†’
232

Write SQL to identify employees whose salary is higher than their manager's.

SQLmediumjoinsql0.3 min read
Incedo
β†’
233

Write a PySpark job to find the top 3 employees of each department, where Age < 30 and Salary > department average salary.

SQLmediumjoinpartitionspark0.3 min read
Freight Tiger
β†’
234

Write a SQL query leveraging window functions and timestamps to identify updates over time

SQLmediumpartitionsqlwindow0.3 min read
Myntra
β†’
235

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

SQLmediumpartitionsqlwindow0.3 min read
Morgan Stanley
β†’
236

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

SQLmediumpartitionsql0.2 min read
PLEO
β†’
237

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

SQLmediumpartitionsql0.3 min read
Amazon
β†’
238

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

SQLmediumjoinsql0.2 min read
Incedo
β†’
239

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

SQLmediumsql0.3 min read
Fragma Data Systems
β†’
240

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

SQLmediumjoinsql0.2 min read
HCL
β†’

Reading isn't practice. Get AI feedback on your answers.

Type or paste your answer to any of these questions and our AI Coach scores it, highlights gaps, and rewrites it at FAANG quality. Free to try.

Try AI Answer Coach β€” FreeStart a Mock Interview
Previous1...1011121314Next
Categories
All QuestionsSQLSpark / Big DataPython / CodingSystem DesignCloud / ToolsBehavioral
By Company
AmazonGoogleDatabricksSnowflakeMicrosoftNetflixUberTCS
Interview Guides
All GuidesTop SQL QuestionsTop Spark QuestionsTop Python QuestionsTop System DesignSQL Window FunctionsETL QuestionsData Modeling
Products
AI Interview CoachAnswer AnalyzerSQL PlaygroundResume AnalyzerInterview PacksPricing
Company
About UsContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
Β© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer