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
1021

Find 3rd Highest Salary

SQLmedium0.3 min read
LTIMindtree
β†’
1022

Find Employees with Maximum Salary in Each Department

SQLmediumpartitionwindow0.3 min read
TCS
β†’
1023

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

SQLmedium0.3 min read
Gartner
β†’
1024

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

SQLmedium0.2 min read
Pubmatic
β†’
1025

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

SQLmediumpartition0.2 min read
Deolite
β†’
1026

Find employees who earn the third-highest salary.

SQLmedium0.2 min read
Incedo
β†’
1027

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

SQLeasysql0.3 min read
Pubmatic
β†’
1028

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

SQLmediumpartition0.3 min read
Bitwise
β†’
1029

Find the error in the provided SQL query.

SQLmediumjoinsql0.3 min read
Grover
β†’
1030

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

SQLmediumwindow0.3 min read
Tredence
β†’
1031

Find the third-highest salary for each department.

SQLmediumpartition0.2 min read
Freight Tiger
β†’
1032

Finding nth Highest Salary within each department

SQLmediumpartition0.2 min read
Walmart
β†’
1033

Given a CSV file with raw customer transactions, design an ETL pipeline that cleans data, aggregates total sales by region and product, and loads into target table

SQLhardetljoinoptimization3.6 min read
McKinsey
β†’
1034

Given a complex nested query, how would you refactor it for better readability and efficiency?

SQLmediumjoinwindow0.3 min read
Goldman Sachs
β†’
1035

Given a dataset, perform transformations: Filter rows where sales > 1000, Add a new column calculating a 10% discount on sales, Group data by region and calculate total revenue.

SQLeasyspark0.2 min read
Warner Bros Discovery
β†’
1036

Given a table of sales data, use window functions to calculate a running total.

SQLmediumpartitionwindow0.2 min read
American Express
β†’
1037

Given a table with 10 records and another with 4 records, how many records result from a cross join?

SQLmediumjoin0.2 min read
Aarete
β†’
1038

Given a table with sales data, write a query to find consecutive days with decreasing revenue.

SQLmediumjoin0.3 min read
Uber
β†’
1039

Given an unoptimized query execution plan, how would you diagnose and improve performance?

SQLmediumjoinpartition0.3 min read
BCG
β†’
1040

Given the data below, explain the results of different types of joins: Inner Join, Left Join, Right Join. Will a schema be created?

SQLmediumjoin0.2 min read
Coforge
β†’

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