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

DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPricingBlog
ProLogin

Interview Questions

Real questions from top companies in SQL Β· medium

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

How do you handle NULL values in SQL? Mention functions like COALESCE and ISNULL.

SQLmediumjoinsql0.5 min read
AareteDunnhumbyIncedo
β†’
22

How would you handle duplicate records in an SQL table?

SQLmediumpartitionsql0.6 min read
AareteDunnhumbyIncedo
β†’
23

Implement a query to find the top 5 customers by total sales amount.

SQLmediumpartitionwindow0.5 min read
Daniel WellingtonGoldman SachsSwiggy
β†’
24

SQL query to find the second highest salary from each department.

SQLmediumpartitionsqlwindow2 min read
AccentureYash Technologies
β†’
25

What are primary keys and foreign keys? Why are they important?

SQLmediumjoin2 min read
PresidioSwiggy
β†’
26

What is a self-join, and when would you use it?

SQLmediumjoin2 min read
PresidioSwiggy
β†’
27

What is normalization and denormalization? When would you use each?

SQLmediumetljoin2 min read
PresidioSwiggy
β†’
28

What is the difference between a view and a materialized view?

SQLmedium2 min read
PresidioSwiggy
β†’
29

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

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

Triggers in ADF, especially tumbling window triggers.

SQLmediumpartitionwindow0.5 min read
AccentureYash Technologies
β†’
31

What is a window function? Explain with an example.

SQLmediumjoinpartitionwindow0.5 min read
CitiFreecharge
β†’
32

What is the difference between OLTP and OLAP?

SQLmediumbigquerysnowflake2 min read
ChryselysEY
β†’
33

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

SQLmediumpartitionsql2 min read
FedEx DataworksIncedo
β†’
34

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

SQLmediumpartitionwindow2 min read
Bristol Myers SquibbWipro
β†’
35

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

SQLmediumjoinpartitionsql0.7 min read
AppleTiger Analytics
β†’
36

Compare Airflow's @daily vs once trigger scheduling.

SQLmediumairflow0.6 min read
Google
β†’
37

Compare OLTP and OLAP systems in the context of financial transactions.

SQLmediumbigqueryetlpartition0.5 min read
Goldman Sachs
β†’
38

Compare PostgreSQL vs Snowflake. How do they handle duplicate record errors?

SQLmediumpartitionsnowflakesql0.6 min read
Gartner
β†’
39

Compare the star schema and snowflake schema. Which one would you use for reporting at Swiggy, and why?

SQLmediumjoinsnowflake0.5 min read
Swiggy
β†’
40

Connecting BigQuery with Linux

SQLmediumairflowbigquerypartition0.5 min read
Verizon
β†’

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
Previous12345Next
Categories
All QuestionsSQLSpark / Big DataPython / CodingSystem DesignCloud / ToolsBehavioral
By Company
AmazonGoogleDatabricksSnowflakeAWSAzureMicrosoftNetflixUberTCS
Interview Guides
All GuidesTop SQL QuestionsTop Spark QuestionsPySpark QuestionsTop Python QuestionsTop System DesignKafka QuestionsAirflow QuestionsSQL Window FunctionsETL QuestionsData Modeling
Products
AI Interview CoachAnswer AnalyzerSQL PlaygroundResume AnalyzerAnswer Vault PDFsPricing
Company
About & Editorial PolicyContact UsAI DisclosureDisclaimerTerms of ServicePrivacy Policy
Β© 2026 DataEngPrep.tech. All rights reserved.
AboutBlogContactDisclaimer