DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPacksBlog
ProLogin

Interview Questions

Real questions from top companies

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

Why is HAVING clause used only after GROUP BY?

SQLmedium0.4 min read
Fossil Group
β†’
1262

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

SQLmediumpartition0.4 min read
Bitwise
β†’
1263

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

SQLmediumjoinsnowflake0.5 min read
Daniel Wellington
β†’
1264

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

SQLmediumpartitionwindow0.4 min read
Wolters Kluwer
β†’
1265

Write SQL query for sum of marks grouped by student.

SQLeasysql0.2 min read
Gartner
β†’
1266

Write SQL query to find names starting with 'R' and ending with 't', sorted by first_name descending

SQLeasysql0.2 min read
Presidio
β†’
1267

Write SQL query to replace specific patterns in a string column.

SQLeasybigquerysql0.2 min read
Incedo
β†’
1268

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

SQLmediumjoinsql0.3 min read
Incedo
β†’
1269

Write a Merge Statement for SCD Type 2.

SQLeasysnowflakesql0.4 min read
EY
β†’
1270

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
β†’
1271

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

SQLmediumpartitionsqlwindow0.3 min read
Myntra
β†’
1272

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

SQLmediumpartitionsqlwindow0.3 min read
Morgan Stanley
β†’
1273

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

SQLmediumpartitionsql0.2 min read
PLEO
β†’
1274

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

SQLmediumpartitionsql0.3 min read
Amazon
β†’
1275

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

SQLmediumjoinsql0.2 min read
Incedo
β†’
1276

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

SQLeasysql0.3 min read
Dunnhumby
β†’
1277

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

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

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

SQLmediumjoinsql0.2 min read
HCL
β†’
1279

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

SQLmediumpartitionsql0.2 min read
Delivery Hero
β†’
1280

Write a SQL query to find the top 3 selling products per region in the last month.

SQLmediumpartitionsql0.3 min read
Amazon
β†’

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...6263646566...94Next
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