DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPacksBlog
ProLogin

Interview Questions

Real questions from top companies in SQL

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

Explain the use of Elastic Resize vs. Classic Resize in Redshift.

SQLeasy0.4 min read
Capco
β†’
182

Explain the use of surrogate keys vs. natural keys in data modeling.

SQLmediumjoin0.4 min read
BCG
β†’
183

Explain types of joins in Spark with examples.

SQLmediumjoinspark0.4 min read
Freecharge
β†’
184

Explain your approach to optimizing a slow-running query on a table with billions of rows.

SQLmediumpartition0.3 min read
Goldman Sachs
β†’
185

Explain your understanding of indexing, partitioning, and execution plans.

SQLmediumjoinpartition0.4 min read
Apple
β†’
186

Fact vs Dimension Table - categorize data

SQLmediumjoinpartition0.3 min read
Myntra
β†’
187

Facts and Dimension Tables Properties

SQLmediumpartition0.3 min read
Nagarro
β†’
188

Features of NoSQL Databases

SQLhardjoinoptimizationsql0.3 min read
Nagarro
β†’
189

Filter Rows Where Employee Salary > Manager Salary

SQLmediumjoin0.3 min read
LTIMindtree
β†’
190

Find 3rd Highest Salary

SQLmedium0.3 min read
LTIMindtree
β†’
191

Find Employees with Maximum Salary in Each Department

SQLmediumpartitionwindow0.3 min read
TCS
β†’
192

Find average salary by department, max average salary, and list of employees for the max salary department.

SQLmedium0.3 min read
Gartner
β†’
193

Find average salary for each manager – Assume a table with manager_id and employee_salary

SQLmedium0.2 min read
Pubmatic
β†’
194

Find each student's previous year's scores using the LAG function.

SQLmediumpartition0.2 min read
Deolite
β†’
195

Find employees who earn the third-highest salary.

SQLmedium0.2 min read
Incedo
β†’
196

Find non-common records in two tables (SQL EXCEPT or NOT IN)

SQLeasysql0.3 min read
Pubmatic
β†’
197

Find the 2nd highest salary for each department using the DENSE_RANK() function.

SQLmediumpartition0.3 min read
Bitwise
β†’
198

Find the error in the provided SQL query.

SQLmediumjoinsql0.3 min read
Grover
β†’
199

Find the second-highest salary in the employees table using three different methods.

SQLmediumwindow0.3 min read
Tredence
β†’
200

Find the third-highest salary for each department.

SQLmediumpartition0.2 min read
Freight Tiger
β†’

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...89101112...25Next
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