SQL Interview Questions in Pune
36 practice questions with answers for SQL interviews in Pune.
SQL jobs in Pune
Pune combines IT-services campuses in Hinjewadi and Kharadi with product, automotive and BFSI technology centres. It has a large mid-level job market for data and QA roles, and interviews are often practical and project-based.
Below are 36 questions that match the mix of service, product and domain employers hiring data analyst (sql)s in Pune.
An interviewer asks for the Nth highest salary in a reusable way. How do you answer?
Show answer
Your query WHERE manager_id <> 5 is not returning employees who have no manager. Why?
Show answer
Two users book the last seat at the same time and both succeed. How do you fix it?
Show answer
Find cities with more than 100 customers.
Show answer
What do NTILE, PERCENT_RANK and CUME_DIST do?
Show answer
Why is NOT IN dangerous when the subquery contains NULL?
Show answer
Finance asks for the count of customers whose total spend crossed 1 lakh in each city. How do you write it?
Show answer
A query that ran in 1 second now takes 40 seconds after a data load. What do you check?
Show answer
Describe a time you found and fixed a wrong number in a report.
Show answer
What are surrogate keys and natural keys?
Show answer
What is the difference between ROWS and RANGE frames?
Show answer
How do you prevent SQL injection in applications?
Show answer
What is a window frame and what is the default frame?
Show answer
Rewrite a nested query using CTEs for readability.
Show answer
Produce region subtotals and a grand total in one query.
Show answer
What is the difference between a join and a union?
Show answer
What is the difference between putting a condition in ON versus WHERE in a LEFT JOIN?
Show answer
What are transaction isolation levels?
Show answer
How do you handle a situation where business users dispute your numbers?
Show answer
How do SQL dialects differ and how do you write portable SQL?
Show answer
A search on name LIKE '%sharma%' is very slow on a 20 million row table. What can you do?
Show answer
A query with a correlated subquery in SELECT runs for every row and is slow. How do you improve it?
Show answer
What is the difference between IN and EXISTS?
Show answer
What does DISTINCT do and how is it different from GROUP BY?
Show answer
What is the difference between MIN/MAX on numbers and on strings or dates?
Show answer
What are database statistics and why do they matter?
Show answer
Calculate a 7-day moving average of daily active users.
Show answer
Write a query for monthly revenue for the current year.
Show answer
What are constraints in SQL?
Show answer
What is the difference between COUNT(*), COUNT(column) and COUNT(DISTINCT column)?
Show answer
Get the latest 3 orders for every customer using a lateral join.
Show answer
Rewrite a non-SARGable date filter to use an index.
Show answer
What are window functions in SQL?
Show answer
Tell me about a time you automated a manual data task with SQL.
Show answer
Describe your SQL project from college or internship.
Show answer
Companies with offices in Pune (11)
TCS
SQL interview questions
Mumbai, Chennai, Pune +2
View questionsInfosys
SQL interview questions
Bengaluru, Mysuru, Pune +2
View questionsWipro
SQL interview questions
Bengaluru, Hyderabad, Pune +2
View questionsAccenture
SQL interview questions
Bengaluru, Hyderabad, Pune +2
View questionsCognizant
SQL interview questions
Chennai, Bengaluru, Pune +2
View questionsCapgemini
SQL interview questions
Mumbai, Bengaluru, Pune +2
View questionsTech Mahindra
SQL interview questions
Pune, Hyderabad, Bengaluru +2
View questionsAmazon
SQL interview questions
Bengaluru, Hyderabad, Chennai +2
View questionsMicrosoft
SQL interview questions
Hyderabad, Bengaluru, Noida +2
View questionsPhonePe
SQL interview questions
Bengaluru, Pune
View questionsDeloitte
SQL interview questions
Hyderabad, Bengaluru, Mumbai +2
View questionsFrequently asked questions
Which companies hire SQL professionals in Pune?
Companies with large offices in Pune include TCS, Infosys, Wipro, Accenture, Cognizant, Capgemini, Tech Mahindra, Amazon, Microsoft, PhonePe. Use their company pages below to practise employer-specific sets.
Are SQL interviews in Pune different from other cities?
The questions depend more on the company than the city. Pune's mix of employers decides the style: It has a large mid-level job market for data and QA roles, and interviews are often practical and project-based
How do I find SQL jobs in Pune?
Shortlist companies with Pune offices, keep your CV focused on SQL projects, apply on company career pages and job portals with the Pune filter, and practise the questions on this page before each interview.