SQL Interview Questions in Chennai
36 practice questions with answers for SQL interviews in Chennai.
SQL jobs in Chennai
Chennai is a long-standing IT-services and SaaS hub along OMR, with strong demand for testing, data and support-engineering roles. Many companies here hire freshers in large batches and train them on the job.
Below are 36 questions that match the mix of service, product and domain employers hiring data analyst (sql)s in Chennai.
After joining orders with payments, revenue doubled. What went wrong?
Show answer
Two users book the last seat at the same time and both succeed. How do you fix it?
Show answer
How do you get the top 3 rows in different databases?
Show answer
You need customers who bought both product A and product B. How would you write it?
Show answer
What do NTILE, PERCENT_RANK and CUME_DIST 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
Create an index to speed up searching orders by customer and date.
Show answer
What is the difference between UNION and UNION ALL?
Show answer
Tell me about a time you significantly improved query performance.
Show answer
Find duplicate email addresses in a users table.
Show answer
A query that ran in 1 second now takes 40 seconds after a data load. What do you check?
Show answer
Rewrite a nested query using CTEs for readability.
Show answer
What happens when you join on a column that has NULL values?
Show answer
Your NOT IN query returns zero rows even though you expect results. What do you check?
Show answer
Your query WHERE manager_id <> 5 is not returning employees who have no manager. Why?
Show answer
Can you use a column alias in GROUP BY or HAVING?
Show answer
A join between two large tables takes minutes. How would you speed it up?
Show answer
What is the difference between IN and EXISTS?
Show answer
A table stores phone numbers as 'ph1, ph2, ph3' in one column. What is wrong and how do you fix it?
Show answer
You need each customer's latest address from a history table. How do you query it?
Show answer
What is the difference between a unique index and a normal index?
Show answer
Create a simple stored procedure that returns orders for a customer.
Show answer
What are ROLLUP, CUBE and GROUPING SETS?
Show answer
Tell me about a time you had to deliver a report under a tight deadline.
Show answer
Your GROUP BY query returns an error that a column is not in the group by clause. How do you fix it?
Show answer
What is normalisation and why is it needed?
Show answer
Your application logs frequent deadlock errors at peak hours. How do you investigate and reduce them?
Show answer
How do you explain a technical database issue to a non-technical manager?
Show answer
An e-commerce app needs products with very different attributes, such as phones and shirts. How do you model them?
Show answer
Are CTEs materialised or inlined?
Show answer
How do you keep improving your SQL skills?
Show answer
Your running total jumps by large amounts on some dates instead of row by row. Why?
Show answer
How do you prevent SQL injection in applications?
Show answer
What are surrogate keys and natural keys?
Show answer
An interviewer asks for the Nth highest salary in a reusable way. How do you answer?
Show answer
Companies with offices in Chennai (8)
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 questionsCognizant
SQL interview questions
Chennai, Bengaluru, Pune +2
View questionsCapgemini
SQL interview questions
Mumbai, Bengaluru, Pune +2
View questionsHCLTech
SQL interview questions
Noida, Chennai, Bengaluru +2
View questionsTech Mahindra
SQL interview questions
Pune, Hyderabad, Bengaluru +2
View questionsAmazon
SQL interview questions
Bengaluru, Hyderabad, Chennai +2
View questionsFrequently asked questions
Which companies hire SQL professionals in Chennai?
Companies with large offices in Chennai include TCS, Infosys, Wipro, Cognizant, Capgemini, HCLTech, Tech Mahindra, Amazon. Use their company pages below to practise employer-specific sets.
Are SQL interviews in Chennai different from other cities?
The questions depend more on the company than the city. Chennai's mix of employers decides the style: Many companies here hire freshers in large batches and train them on the job
How do I find SQL jobs in Chennai?
Shortlist companies with Chennai offices, keep your CV focused on SQL projects, apply on company career pages and job portals with the Chennai filter, and practise the questions on this page before each interview.