0% found this document useful (0 votes)
20 views14 pages

Interview Question For DA

The document provides a comprehensive overview of interview experiences for data analyst positions across various companies, detailing the types of questions asked in SQL, Power BI, Python, and behavioral interviews. It includes specific technical questions related to SQL functions, Power BI features, and Python programming, as well as general behavioral questions. The content is aimed at helping candidates prepare for data analyst interviews by highlighting common themes and frequently asked questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views14 pages

Interview Question For DA

The document provides a comprehensive overview of interview experiences for data analyst positions across various companies, detailing the types of questions asked in SQL, Power BI, Python, and behavioral interviews. It includes specific technical questions related to SQL functions, Power BI features, and Python programming, as well as general behavioral questions. The content is aimed at helping candidates prepare for data analyst interviews by highlighting common themes and frequently asked questions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Deloitte data analyst interview experience (0-3 yr)(sql,powerbi)

SQL: 5 questions
Q1: Explain the difference between RANK(), DENSE_RANK(), and ROW_NUMBER()
functions using example.

Q2 – Q4 use Table: employee (EmpID, ManagerID, JoinDate, Dept, Salary)

Q2: Find the nth highest salary from the Employee table.

Q3: You have an employee table with employee ID and manager ID. Find all employees
under a specific manager, including their subordinates at any level.

Q4: Write a query to find the cumulative salary of employees department-wise, who have
joined company in last 30 days.

Q5: Find the top 2 customers with the highest order amount for each product category,
handling ties appropriately. Table: customer (CustomerID, ProductCategory,
OrderAmount)

Power BI: 3 questions


Q1: Explain step-by-step how will you create a sales dashboard from scratch.

Q2: Explain how you can optimize a slow Power BI report.

Q3: Explain Any 5 Chart Types and Their Uses in Representing Different Aspects of Data.

Behavioral: 2 Questions
Q1: Why you want to become a data analyst and why did you apply to this company?

Q2: Describe a time when you had to manage a difficult task with tight deadlines. How
did you handle it?

Follow @prashant_singh for more Such contents


Goldman Sachs Data Analyst Interview Experience (2+ years)
SQL:
1. Calculate the average salary for each department from the table.
2. Write a SQL query to display the employee’s name along with their manager’s
name using a self-join on the ‘employees’ table, which contains ‘emp_id’, ‘name’,
and ‘manager_id’ columns.
3. Find the most recent hire for each department (solved using LEAD/LAG
functions).
4. Write a query to retrieve the nth highest salary from the Employees table,
which has ‘EmployeeID’, ‘Name’, and ‘Salary’ columns.

Power BI:
1. What is meant by Filter context in DAX?
2. Explain the process of implementing Row-Level Security (RLS) in Power BI.
3. Describe the different types of filters available in Power BI.
4. What’s the difference between the ‘ALL’ and ‘ALLSELECTED’ functions in
DAX?
5. How would you use DAX to calculate total sales for a specific product?

Python:
1. Create a dictionary, add elements, update a specific entry, and print the
dictionary sorted by key in alphabetical order.
2. Identify unique values from a list of numbers and print how many times each
value occurs.
3. Find and print the duplicate values in a list of numbers, along with their
frequency.

In addition to the technical questions, one of the rounds focused primarily on my


previous work experience and included a case study discussion

Follow @prashant_singh for more Such contents


EY data analyst interview experience (2 year experience)

1 . Tell me about yourself & your roles-responsibilities at your current work place.

2. how much you would rate yourself in sql

3. How to find the values in a text column of a table that start with a certain letter?

4. What is a Recursive Stored Procedure?

5. Find the candidates best suited for an open Data Science job. You want to find
candidates who are proficient in Python, Tableau, and PostgreSQL.(table has two
colunms (name ,skills)).

6. He asked about tableau related secnario based questions .


a. what is tableau prep and how will you get it
b.what is tableau server .

Follow @prashant_singh for more Such contents


KPMG Data Analyst Interview Experience at (2+ Years)
SQL:
1. Write a query to calculate the total revenue generated by each region.
2. Display the names of employees who have a salary above the average salary in their
department.
3. Identify the second highest salary in each department from the ‘employees’ table,
which has ‘emp_id’, ‘department_id’, and ‘salary’ columns.
4. Write a SQL query to find employees who have not had any recent sales in the last 3
months.

Power BI:
1. Explain how you would create a dynamic date filter in Power BI for last month’s data.
2. Describe the steps for setting up role-based access in Power BI using Row-Level
Security (RLS).
3. What is the difference between a calculated column and a measure in Power BI?
4. How would you approach building a KPI dashboard that tracks multiple metrics over
time?

Python:
1. Write a Python function to filter out customers who have made more than 5 purchases
in the last 6 months.
2. Create a program that reads a CSV file, extracts unique values in a column, and saves
the results in a new file.
3. Develop a Python script to visualize monthly sales trends for a dataset using
Matplotlib or Seaborn.

Case Study Round (Guesstimate Focus):


In addition to technical questions, there was a guesstimate question to test analytical
thinking.

— Estimate the number of coffee cups sold in New York City daily.

Follow @prashant_singh for more Such contents


Meesho Data Analyst interview experience (0-3) -

Power BI Questions:

1. Explain the concept of context transition in DAX and provide an example.


2. How would you optimize a complex Power BI report for faster performance?
3. Describe the process of creating and using calculation groups in Power BI.
4. Explain how you would handle large datasets in Power BI without compromising
performance.
5. What is a composite model in Power BI, and how can it be used effectively?
6. How does the USERELATIONSHIP function work, and when would you use it?
7. Describe how to use Power Query M language for advanced data transformations.
8. Explain the difference between CROSSFILTER and TREATAS in DAX.

SQL Questions:

1. How would you optimize a slow-running query with multiple joins?


2. What is a recursive CTE, and can you provide an example of when to use it?
3. Explain the difference between clustered and non-clustered indexes and when to use
each.
4. Write a query to find the second highest salary in each department.
5. How would you detect and resolve deadlocks in SQL?
6. Explain window functions and provide examples of ROW_NUMBER, RANK, and
DENSE_RANK.
7. Describe the ACID properties in database transactions and their significance.
8. Write a query to calculate a running total with partitions based on specific conditions.

Follow @prashant_singh for more Such contents


Tiger Analytics Data Analyst Interview Experience (0-3 years)

SQL Questions:

1. Describe a scenario where you used SQL to analyze customer data. What insights did
you uncover?
2. Rate your SQL skills on a scale of 1-10 and provide examples of advanced queries
you’ve written.
3. Write a query to identify the second-highest salary in each department.
4. Explain the concept of JOINs and provide a query that joins three tables (Orders,
Customers, Products) to find the top 5 customers by revenue.
5. What is a Common Table Expression (CTE) in SQL, and when would you use it?
Write a CTE query to calculate cumulative monthly sales.
6. Write an SQL query to find all employees whose salaries are above the department
average.
7. Describe your approach to optimizing SQL queries. Can you share an example where
optimization made a noticeable difference?

Python Questions:

1. What Python libraries do you frequently use for data manipulation, and why?
2. How would you write a Python function to calculate moving averages for sales data?
3. Write a Pandas code snippet to remove outliers from a dataset based on the IQR
method.
4. Describe a project where you used Matplotlib or Seaborn for data visualization. What
insights did your visualizations reveal?
5. How would you merge three DataFrames (Sales, Customers, Regions) and compute
the average sales per region?
6. Write a Python code snippet to group data by product category and calculate total
revenue for each category.
7. How do you handle missing data in Python? Share a few imputation techniques you
use.
8. Explain how you would use time series analysis in Python for forecasting monthly
sales.
Follow @prashant_singh for more Such contents
EXL Power Bi Developer Interview Experience(0-3 years)

SQL Questions:

1. Write a SQL query to find the third most recent order date for each customer from a
table Orders (OrderID, CustomerID, OrderDate).
2. Write a query to find the employee with the second-highest salary in a department-
wise ranking.
3. Explain the difference between WHERE and HAVING clauses in SQL.
4. Given a table Sales with columns SaleID, ProductID, Quantity, and Price, write a
query to find the product with the highest total sales revenue.
5. Write a query to calculate the cumulative sales for each product category in the last 90
days.

Power BI Questions:

1. Explain Row-Level Security and its importance in Power BI.


2. What makes Power BI a preferred choice over other BI tools?
3. Describe some key components of Power BI and how they interact.
4. What are the different data connectivity modes available in Power BI, and when
should each be used?

Follow @prashant_singh for more Such contents


ITC Infotech Power BI Developer Interview Experience(1-3 years)

Power BI Questions:

1. How do you ensure data integrity when combining data from multiple sources in
Power BI?
2. What is the difference between a slicer and a filter in Power BI? When would you use
each?
3. Describe a time when you optimized a Power BI report for performance. What steps
did you take?
4. How do you handle missing values in your Power BI datasets?
5. What techniques can you use to visualize KPI trends effectively in Power BI?
6. How would you create a measure to calculate year-over-year growth in Power BI?
7. Explain how you would implement row-level security in a Power BI report.
8. How do you ensure your Power BI reports are user-friendly for non-technical
stakeholders?

SQL Questions:

1. Explain the outputs for all the joins.


2. How would you write a query to find the top five products by sales?
3. Explain the purpose of indexes in SQL. How do they improve query performance?
4. Can you describe a situation where you had to optimize a slow-running SQL query?
What approach did you take?

Follow @prashant_singh for more Such contents


There are few sql questions ,asked commonly in interviews for freshers or >2 yr of
experience for data roles ,curated them and sharing with you guys.
1.Write a SQL query to find the top 5 customers with the highest total purchase amount.
Assume you have two tables: Customers (CustomerID, Name) and Orders (OrderID,
CustomerID, Amount).
SELECT c.CustomerID, c.Name, SUM(o.Amount) AS TotalPurchase
FROM Customers c
JOIN Orders o ON c.CustomerID = o.CustomerID
GROUP BY c.CustomerID, c.Name
ORDER BY TotalPurchase DESC
LIMIT 5;

2.Write a query to find the nth highest salary from a table Employees with columns
EmployeeID, Name, and Salary.
SELECT DISTINCT Salary
FROM Employees
ORDER BY Salary DESC
LIMIT 1 OFFSET n-1;

3.Replace n with the desired rank (e.g., 2 for the second highest).
Given a table Sales with columns SaleID, ProductID, SaleDate, and Quantity, write a
query to find the total quantity sold for each product per month.
SELECT ProductID, DATE_TRUNC('month', SaleDate) AS Month, SUM(Quantity) AS
TotalQuantity
FROM Sales
GROUP BY ProductID, Month
ORDER BY ProductID, Month;

4.Write a SQL query to find all employees who have more than one manager. Assume
you have a table Employees (EmployeeID, Name, ManagerID).
SELECT EmployeeID, Name
FROM Employees

Follow @prashant_singh for more Such contents


GROUP BY EmployeeID, Name
HAVING COUNT(DISTINCT ManagerID) > 1;

5.Given a table Orders with columns OrderID, CustomerID, OrderDate, and a table
OrderDetails with columns OrderID, ProductID, Quantity, write a query to find the top
3 products with the highest sales quantity.

SELECT ProductID, SUM(Quantity) AS TotalQuantity


FROM OrderDetails
GROUP BY ProductID
ORDER BY TotalQuantity DESC
LIMIT 3;

6.Write a SQL query to find the second most recent order date for each customer from a
table Orders (OrderID, CustomerID, OrderDate).

SELECT CustomerID, MAX(OrderDate) AS SecondRecentOrderDate


FROM Orders
WHERE OrderDate < (SELECT MAX(OrderDate) FROM Orders o2 WHERE
o2.CustomerID = Orders.CustomerID)
GROUP BY CustomerID;

7.Given a table Employees with columns EmployeeID, Name, DepartmentID, Salary,


write a query to find the highest paid employee in each department.
SELECT DepartmentID, EmployeeID, Name, Salary
FROM Employees e1
WHERE Salary = (SELECT MAX(Salary) FROM Employees e2 WHERE
e2.DepartmentID = e1.DepartmentID);

9.Given a table Products with columns ProductID, Name, Price, and a table Sales with
columns SaleID, ProductID, Quantity, write a query to find the product with the highest
revenue.
Follow @prashant_singh for more Such contents
SELECT p.ProductID, p.Name, SUM(p.Price * s.Quantity) AS Revenue
FROM Products p
JOIN Sales s ON p.ProductID = s.ProductID
GROUP BY p.ProductID, p.Name
ORDER BY Revenue DESC
LIMIT 1

- Frequently Asked Power BI Questions in Interviews:

1. What is the difference between Power BI Desktop and Power BI Service?


2. How do you handle data refresh in Power BI?
3. Can you explain the purpose of Power Query in Power BI?
4. What is the significance of DAX in Power BI, and how is it used?
5. How can you create and use calculated tables in Power BI?
6. What is the difference between Import Mode and Direct Query Mode?
7. How do you implement data modeling in Power BI?
8. What are Quick Measures in Power BI?
9. How do you optimize the performance of a Power BI report?
10. What is a Dataflow, and how does it work in Power BI?
11. What is the use of Power BI Templates?
12. How do you create and manage relationships between tables in Power BI?
13. What are the different types of filters available in Power BI?
14. What are Aggregations in Power BI, and how do you implement them?
15. How can you handle dynamic row-level security in Power BI?
16. What is the use of Drillthrough and Drilldown in Power BI reports?
17. How do you publish and share reports in Power BI?
18. Can you explain the difference between Power BI Pro and Power BI
Premium?
19. How do you use Power BI to connect to different data sources?
20. What are the best practices for creating dashboards in Power BI?

You might also like