πŸͺ

Essential cookies keep authentication working. With your permission, we also use analytics to improve the product. Privacy Policy

DDataEngPrep.tech
Home
PricingBlog
Sign InStart Free→

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?

SQLmediumbigquerysnowflake2 min read
ChryselysEY
β†’
46

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

SQLmediumpartitionsql2 min read
FedEx DataworksIncedo
β†’
47

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

SQLmediumpartitionwindow2 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

SQLmediumpartitionsparksql1 min read
Presidio
β†’
50

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

SQLmediumpartition2 min read
Freight Tiger
β†’
51

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

SQLmediumjoin1 min read
HashedIn
β†’
52

Add a new column with the average salary by department.

SQLmediumpartitionwindow1 min read
HashedIn
β†’
53

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

SQLeasy2 min read
Deolite
β†’
54

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

SQLeasy0.5 min read
Nielsen
β†’
55

CSV Without Column Names/Schema - how to read

SQLeasyspark2 min read
LTIMindtree
β†’
56

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

SQLmediumpartition2 min read
Bitwise
β†’
57

Can CASE statements be used in an UPDATE query?

SQLeasy2 min read
Fossil Group
β†’
58

Can you chain multiple triggers for a single pipeline?

SQLeasy2 min read
Virtusa
β†’
59

Cloud Architecture - explain

SQLhardjoinoptimizationpartition3.6 min read
Nagarro
β†’
60

Compare Airflow's @daily vs once trigger scheduling.

SQLmediumairflow0.6 min read
GoogleAirbnb
β†’

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...10Next
Topic Hubs
All Topic Hubs (12 Competencies) β†’All 1,863+ QuestionsSQL Interview QuestionsApache Spark QuestionsPySpark QuestionsPython for Data EngineersSystem Design InterviewData Modeling & WarehousingStreaming (Kafka/Flink)SQL Window FunctionsETL Pipeline Design
Company Hubs
All Company Hubs (100+ Companies) β†’AmazonGoogleMetaDatabricksSnowflakeNetflixUberStripeMicrosoftAppleGoldman SachsAWS Engineering
Academies & Guides
All Guides & ArticlesData Engineering AcademyForward Deployed AI AcademyClient Simulation StudioApache Airflow QuestionsAzure Data EngineerBehavioral & STAR MethodCloud & Distributed Tools
AI Tools & Products
Answer Analyzer (Free)AI Mock InterviewsSQL PlaygroundATS Resume AnalyzerOffline PDF Answer VaultsMembership & Pricing
Company
About & Editorial PolicyContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
Β© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer