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
261

How would you add columns to a table without impacting queries?

SQLeasy0.3 min read
Capco
β†’
262

How would you automate Redshift cluster scaling for peak loads?

SQLeasy0.3 min read
Capco
β†’
263

How would you clean the data by filtering out records with null values in user_id?

SQLeasysparksql0.2 min read
Meesho
β†’
264

How would you create a materialized view for frequently accessed aggregated sales data?

SQLeasysnowflakesql0.2 min read
Adidas
β†’
265

How would you deal with a situation where you had to work with a difficult team member?

SQLeasy0.3 min read
Fragma Data Systems
β†’
266

How would you deal with data skewness in a join operation?

SQLmediumjoinspark0.3 min read
Capgemini
β†’
267

How would you deal with data skewness in a large dataset?

SQLmediumjoinpartitionspark0.2 min read
Capgemini
β†’
268

How would you decide between using a CTE and a temporary table for a complex query?

SQLeasybigquerysql0.3 min read
Goldman Sachs
β†’
269

How would you design a data model for an e-commerce platform?

SQLhardjoinoptimizationpartition3.6 min read
Swiggy
β†’
270

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

SQLmediumwindow0.8 min read
Capco
β†’
271

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

SQLmediumetlpartitionspark0.7 min read
Adidas
β†’
272

How would you handle null values in a dataset, especially in a single column?

SQLeasy0.7 min read
Infosys
β†’
273

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

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

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

SQLmediumpartitionsqlwindow0.8 min read
Amazon
β†’
275

How would you optimize a SQL query for better performance when working with large datasets?

SQLhardjoinoptimizationpartition0.7 min read
Tredence
β†’
276

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

SQLmediumbigquerypartitionsnowflake0.6 min read
Adidas
β†’
277

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

SQLmediumjoin0.7 min read
American Express
β†’
278

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

SQLmediumetlpartitionspark0.6 min read
Capco
β†’
279

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

SQLmediumpartitionwindow0.7 min read
Wipro
β†’
280

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

SQLmediumpartitionsparksql0.6 min read
Goldman Sachs
β†’

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