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

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

Finding nth Highest Salary within each department

SQLmediumpartition2 min read
Walmart
β†’
102

Given a CSV file with raw customer transactions, design an ETL pipeline that cleans data, aggregates total sales by region and product, and loads into target table

SQLhardetljoinoptimization3.6 min read
McKinsey
β†’
103

Given a dataset, perform transformations: Filter rows where sales > 1000, Add a new column calculating a 10% discount on sales, Group data by region and calculate total revenue.

SQLeasyspark2 min read
Warner Bros Discovery
β†’
104

Given a table with 10 records and another with 4 records, how many records result from a cross join?

SQLmediumjoin2 min read
Aarete
β†’
105

Given two dataframes (df1: id, name and df2: id, country, address, city, count), join them, filter for rows where country = 'Singapore', and pivot the output. Sort cities in descending order of population count

SQLmediumjoin2 min read
JP Morgan
β†’
106

How can you automate data insertion into BigQuery using Python?

SQLhardairflowbigquerypython2 min read
Aarete
β†’
107

How can you delete partitions from a table in Hive using a command?

SQLmediumpartition2 min read
Dunnhumby
β†’
108

How do you count occurrences in a column in SQL?

SQLeasysql2 min read
Globant
β†’
109

How do you design a scalable and fault-tolerant data warehouse on a cloud platform?

SQLhardjoinoptimizationpartition3.6 min read
HashedIn
β†’
110

How do you interact with Google BigQuery using Python?

SQLeasybigquerypython1 min read
Aarete
β†’
111

How do you keep a specific column on top in SQL?

SQLeasysql2 min read
Globant
β†’
112

How many records result from Inner Join, Left Join, Right Join given Table A and Table B?

SQLmediumjoin2 min read
EY
β†’
113

How many rows result from left, right, full outer, and inner joins?

SQLmediumjoin2 min read
Gartner
β†’
114

How to Handle Null in Spark

SQLmediumspark2 min read
Nagarro
β†’
115

How to Use Dataflow with BigQuery

SQLhardbigquery2 min read
Tech Mahindra
β†’
116

How to optimize join of large and small tables in Spark?

SQLmediumjoinpartitionspark2 min read
Datametica
β†’
117

How to view Oozie jobs?

SQLeasy2 min read
Citi
β†’
118

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

SQLeasysparksql2 min read
Meesho
β†’
119

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

SQLmediumjoinpartitionspark2 min read
Capgemini
β†’
120

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

SQLhardjoinoptimizationpartition3.6 min read
Swiggy
β†’

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...45678...10Next
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