DataEngPrep.tech
QuestionsPracticeAI CoachDashboardPacksBlog
ProLogin

Interview Questions

Real questions from top companies in SQL Β· medium

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

How would you handle data type changes for an existing column?

SQLmediumwindow0.8 min read
Capco
β†’
142

How would you handle duplicate or corrupted data in a batch ETL job?

SQLmediumetlpartitionspark0.7 min read
Adidas
β†’
143

How would you handle nulls in a SQL join? Provide examples using COALESCE.

SQLmediumjoinsql0.7 min read
Bristol Myers Squibb
β†’
144

How would you identify duplicate records based on a composite key in SQL?

SQLmediumpartitionsqlwindow0.8 min read
Amazon
β†’
145

How would you optimize a query fetching sales data across multiple countries with billions of rows?

SQLmediumbigquerypartitionsnowflake0.6 min read
Adidas
β†’
146

How would you optimize a query with multiple joins and subqueries?

SQLmediumjoin0.7 min read
American Express
β†’
147

How would you prevent small file problems in S3 when loading data into Redshift?

SQLmediumetlpartitionspark0.6 min read
Capco
β†’
148

How would you retrieve the first and last order for each customer from a sales table?

SQLmediumpartitionwindow0.7 min read
Wipro
β†’
149

Identify and remove duplicate records from a table, keeping the most recent record based on a timestamp column.

SQLmediumpartitionsparksql0.6 min read
Goldman Sachs
β†’
150

If manual partitions are created in a Hive data-warehouse table directory, and you query records from those partitions, will you see the data? If not, how can this be fixed?

SQLmediumpartition0.6 min read
Dunnhumby
β†’
151

Implement a CASE WHEN condition - medium difficulty

SQLmedium0.7 min read
Wolters Kluwer
β†’
152

Indexing – Types and Benefits?

SQLmediumjoin0.5 min read
Comcast
β†’
153

Indexing: When to Use and Avoid

SQLmediumjoinsql0.5 min read
NAB
β†’
154

Integration of Snowflake with external data sources such as S3, GCS, and Blob Storage?

SQLmediumsnowflakewindow0.4 min read
Snowflake
β†’
155

Joins: Different types and their use cases

SQLmediumjoin0.5 min read
ZS Associates
β†’
156

Kafka Partitioning: How would you ensure even load distribution across Kafka partitions in a high-volume system?

SQLmediumpartition0.5 min read
BCG
β†’
157

Lead and Lag in SQL Using PySpark DataFrame API

SQLmediumpartitionsparksql0.4 min read
JIO
β†’
158

List the different types of joins in SQL.

SQLmediumjoinsql0.5 min read
Aarete
β†’
159

Materialized View - explain and use cases

SQLmediumbigqueryjoinsnowflake0.4 min read
NAB
β†’
160

Normalization vs Denormalization

SQLmediumjoin0.4 min read
NAB
β†’

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...678910...14Next
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