SQL Interview Questions in Bangalore
36 practice questions with answers for SQL interviews in Bangalore.
SQL jobs in Bangalore
Bangalore (Bengaluru) is India's largest technology hub, with global product companies, engineering centres, unicorn start-ups and big IT-services campuses. Product-company interviews here are usually deeper, with more scenario, design and hands-on rounds.
Below are 36 questions that match the mix of service, product and domain employers hiring data analyst (sql)s in Bangalore.
Write a query to pivot order counts by status into columns.
Show answer
Rewrite a non-SARGable date filter to use an index.
Show answer
Calculate a 7-day moving average of daily active users.
Show answer
Compare this month's and last month's sales per product using a full outer join.
Show answer
How do you get the top 3 rows in different databases?
Show answer
What is the difference between a CTE, a subquery, a temp table and a view?
Show answer
What happens when you join on a column that has NULL values?
Show answer
Write a transaction to transfer money between two accounts.
Show answer
Find cities with more than 100 customers.
Show answer
What are ACID properties?
Show answer
Write a query for monthly revenue for the current year.
Show answer
Calculate a running total of daily sales.
Show answer
What is the difference between CHAR and VARCHAR?
Show answer
How do you concatenate values within a group?
Show answer
What is GROUP BY and what is the rule for selected columns?
Show answer
Can you use window functions with aggregate functions in the same query?
Show answer
A business user needs a dashboard on a complex 6-table join that runs slowly. Would you use a view or a materialised view?
Show answer
What is a window frame and what is the default frame?
Show answer
What are anti joins and semi joins?
Show answer
You need each customer's latest address from a history table. How do you query it?
Show answer
How would you design a database for an online food delivery app at a high level?
Show answer
What are FIRST_VALUE, LAST_VALUE and NTH_VALUE?
Show answer
Someone ran an UPDATE without WHERE on production. What would you do?
Show answer
How do you explain a technical database issue to a non-technical manager?
Show answer
You need to delete duplicate rows but keep one copy of each. How do you do it?
Show answer
What is the difference between an index scan and an index seek?
Show answer
What is the difference between SUM with CASE and filtering with WHERE?
Show answer
You need to update 50 million rows in production. How do you do it safely?
Show answer
Two users book the last seat at the same time and both succeed. How do you fix it?
Show answer
What is the difference between FULL OUTER JOIN and UNION of LEFT and RIGHT joins?
Show answer
A COUNT(DISTINCT) query on a huge events table is very slow. What options do you have?
Show answer
What does DISTINCT do and how is it different from GROUP BY?
Show answer
Write SQL to create a students table with a primary key and constraints.
Show answer
Your NOT IN query returns zero rows even though you expect results. What do you check?
Show answer
Why is NOT IN dangerous when the subquery contains NULL?
Show answer
Companies with offices in Bangalore (19)
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 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 questionsMicrosoft
SQL interview questions
Hyderabad, Bengaluru, Noida +2
View questionsFlipkart
SQL interview questions
Bengaluru, Hyderabad
View questionsSwiggy
SQL interview questions
Bengaluru, Hyderabad
View questionsPaytm
SQL interview questions
Noida, Bengaluru, Mumbai
View questionsPhonePe
SQL interview questions
Bengaluru, Pune
View questionsRazorpay
SQL interview questions
Bengaluru, Mumbai
View questionsJP Morgan Chase
SQL interview questions
Mumbai, Bengaluru, Hyderabad
View questionsGoldman Sachs
SQL interview questions
Bengaluru, Hyderabad, Mumbai
View questionsDeloitte
SQL interview questions
Hyderabad, Bengaluru, Mumbai +2
View questionsMu Sigma
SQL interview questions
Bengaluru
View questionsFrequently asked questions
Which companies hire SQL professionals in Bangalore?
Companies with large offices in Bangalore include TCS, Infosys, Wipro, Accenture, Cognizant, Capgemini, HCLTech, Tech Mahindra, Amazon, Microsoft. Use their company pages below to practise employer-specific sets.
Are SQL interviews in Bangalore different from other cities?
The questions depend more on the company than the city. Bangalore's mix of employers decides the style: Product-company interviews here are usually deeper, with more scenario, design and hands-on rounds
How do I find SQL jobs in Bangalore?
Shortlist companies with Bangalore offices, keep your CV focused on SQL projects, apply on company career pages and job portals with the Bangalore filter, and practise the questions on this page before each interview.