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
41

Write an SQL query to find duplicate emails in a users table.

SQLmediumpartitionsqlwindow0.5 min read
Daniel WellingtonGoldman SachsSwiggy
β†’
42

Triggers in ADF, especially tumbling window triggers.

SQLmediumpartitionwindow0.5 min read
AccentureYash Technologies
β†’
43

What is a CTE (Common Table Expression)? What are its uses?

SQLeasybigquerysnowflake0.6 min read
Fossil GroupKaseya
β†’
44

What is a window function? Explain with an example.

SQLmediumjoinpartitionwindow0.5 min read
CitiFreecharge
β†’
45

What is the difference between OLTP and OLAP?

SQLmediumbigquerysnowflake0.4 min read
ChryselysEY
β†’
46

Write a SQL query to find top 3 earners in each department.

SQLmediumpartitionsql0.4 min read
FedEx DataworksIncedo
β†’
47

Write a query to find the top three highest-paid employees in each department using window functions.

SQLmediumpartitionwindow0.4 min read
Bristol Myers SquibbWipro
β†’
48

Write complex SQL queries involving multiple joins, subqueries, and data aggregation logic.

SQLmediumjoinpartitionsql0.7 min read
AppleTiger Analytics
β†’
49

Add Row Numbers using window function in PySpark

SQLmediumpartitionsparksql0.2 min read
Presidio
β†’
50

Add a column to the Employees table that shows the name of the employee with the next higher employee_id.

SQLmediumpartition0.2 min read
Freight Tiger
β†’
51

Add a new column with manager names for each employee using a self-join.

SQLmediumjoin0.2 min read
HashedIn
β†’
52

Add a new column with the average salary by department.

SQLmediumpartitionwindow0.2 min read
HashedIn
β†’
53

Advanced SQL with CTEs and Conditional Joins

SQLmediumjoinpartitionsql0.3 min read
Myntra
β†’
54

Aggregate surface areas and calculate cumulative surface area using the LAG function.

SQLeasy0.2 min read
Deolite
β†’
55

Analyze the output of various joins (LEFT, RIGHT, INNER, CROSS, FULL OUTER) on the given tables.

SQLmediumjoin0.2 min read
Chryselys
β†’
56

Are you comfortable with the variable pay structure, and what are your expectations for the base salary?

SQLeasy0.5 min read
Nielsen
β†’
57

Building ETL pipelines to capture changes when new records are inserted into source tables?

SQLeasyetlsnowflake0.3 min read
Snowflake
β†’
58

CSV Without Column Names/Schema - how to read

SQLeasyspark0.1 min read
LTIMindtree
β†’
59

Calculate the cumulative transaction amount for each month using a transaction table.

SQLmediumpartition0.2 min read
Bitwise
β†’
60

Can CASE statements be used in an UPDATE query?

SQLeasy0.2 min read
Fossil Group
β†’

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