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
261

Write a query to remove duplicate records from a table while retaining the earliest entry.

SQLmediumpartition0.3 min read
BCG
→
262

Write a query to retain only the latest record and delete others in case of duplicates.

SQLmediumpartition0.3 min read
Fossil Group
→
263

Write a query to select the latest record based on a time_of_insertion column.

SQLmediumpartitionsnowflakesql0.3 min read
Fossil Group
→
264

Write a self join query to get the manager's name for each employee.

SQLmediumjoin0.2 min read
Gartner
→
265

Write an SQL query to find the top 3 performing products in each category

SQLmediumpartitionsqlwindow0.3 min read
Kagina
→
266

Write code to find the third-highest salary in a dataset using Pandas.

SQLmediumspark0.2 min read
Chryselys
→
267

Write optimized SQL queries involving window functions, CTEs, and joins.

SQLmediumjoinpartitionsql0.3 min read
Apple
→
268

Write queries combining Joins and Group By operations.

SQLmediumjoin0.3 min read
Expedia
→
269

Your Kafka consumer shows significant lag during peak hours. What strategies would you employ to reduce lag and ensure timely data processing?

SQLmediumpartition0.4 min read
Dunnhumby
→
270

map() vs mapPartitions(): Highlight the difference between map (row-level transformation) and mapPartitions (partition-level transformation).

SQLmediumpartition0.3 min read
Capgemini
→
271

repartition() vs coalesce(): Explain when to use repartition() (increases partitions) vs coalesce() (reduces partitions).

SQLmediumpartition0.3 min read
Capgemini
→

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...121314
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