DataEngPrep.tech
QuestionsBlogStore
Get PDF Bundle

Interview Questions

Real questions from top companies in SQL · medium

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

Write an SQL query to find the second-highest salary from an employee table.

SQLmediumpartitionsqlwindow0.8 min read
AccentureBCGCognizantIncedo+2
→
2

Demonstrate the difference between DENSE_RANK() and RANK()

SQLmediumpartitionwindow0.5 min read
CapcoImpetusKPMGWipro
→
3

Discuss differences between ROW_NUMBER(), RANK(), and DENSE_RANK(), and provide examples from your projects.

SQLmediumwindow0.5 min read
AareteAccentureFossil GroupYash Technologies
→
4

Explain the differences between Data Warehouse, Data Lake, and Delta Lake

SQLmediumbigquerypartitionsnowflake0.5 min read
FractalKPMGMatrixMeesho
→
5

Explain the differences between Repartition and Coalesce. When would you use each?

SQLmediumjoinpartition0.5 min read
DatameticaFedEx DataworksNihilentPresidio
→
6

What is the difference between partitioning and bucketing in Spark, and when would you use bucketing?

SQLmediumjoinpartitionspark0.5 min read
CitiCoforgeHCLLTIMindtree
→
7

Can you explain the difference between OLTP and OLAP?

SQLmediumbigquerysnowflakesql0.4 min read
AccentureCognizantEPAMYash Technologies
→
8

Describe a time when you had to optimize a slow SQL query. What steps did you take?

SQLmediumjoinsql0.5 min read
AareteAccentureFossil GroupYash Technologies
→
9

Explain the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN.

SQLmediumjoin0.5 min read
AccentureCognizantEPAMYash Technologies
→
10

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

SQLmediumjoinsql0.4 min read
AccentureCognizantEPAMYash Technologies
→
11

What is the difference between WHERE and HAVING clauses in SQL?

SQLmediumsql0.3 min read
AccentureCognizantEPAMYash Technologies
→
12

Describe a scenario where partitioning and bucketing would improve query performance.

SQLmediumjoinpartition0.7 min read
Daniel WellingtonGoldman SachsSwiggy
→
13

Explain the types of triggers in ADF, including schedule, tumbling window, and event-based triggers.

SQLmediumpartitionwindow0.5 min read
FedEx DataworksNihilentVirtusa
→
14

How do you remove duplicate rows in BigQuery?

SQLmediumbigquerypartition0.6 min read
EYIncedoTech Mahindra
→
15

When would you choose a Snowflake schema over a Star schema?

SQLmediumjoinsnowflake0.6 min read
Goldman SachsMicrosoftZS Associates
→
16

Detail examples of inner, outer, left, and right joins.

SQLmediumjoin0.7 min read
ImpetusTech Mahindra
→
17

Difference between ROW_NUMBER(), RANK(), and DENSE_RANK() with examples.

SQLmediumpartition0.6 min read
PresidioSwiggy
→
18

Difference between where and having clause with examples.

SQLmedium0.6 min read
PresidioSwiggy
→
19

Explain SQL Window Functions with examples.

SQLmediumjoinpartitionsql0.5 min read
AareteDunnhumbyIncedo
→
20

Explain the use of the MERGE statement in SQL.

SQLmediumbigqueryjoinpartition0.5 min read
AareteDunnhumbyIncedo
→
123...14Next