TGViewer
Channel Public Channel
Data Analyst Interview Resources

Data Analyst Interview Resources

@dataanalystinterview

Join our telegram channel to learn how data analysis can reveal fascinating patterns, trends, and stories hidden within the numbers! ๐Ÿ“Š

For ads & suggestions: @love_data
Subscribers
52.6K
Photos
364
Videos
1
Links
453

Showing posts older than #2107 ยท Back to latest

Older Posts 14 shown
Post #2106 1.6K
๐—›๐—ผ๐˜„ ๐—ฅ๐—ฎ๐˜„ ๐——๐—ฎ๐˜๐—ฎ ๐—•๐—ฒ๐—ฐ๐—ผ๐—บ๐—ฒ๐˜€ ๐—ฅ๐—ฒ๐—ฎ๐—น ๐—•๐˜‚๐˜€๐—ถ๐—ป๐—ฒ๐˜€๐˜€ ๐—ฉ๐—ฎ๐—น๐˜‚๐—ฒ

Data creates impact only when it turns into decisions. The analytics process can be seen as a simple journey:

๐Ÿ”น Data โ€“ Raw, messy information collected from systems, users, or transactions.

๐Ÿ”น Sorted โ€“ Cleaning and organizing the data by removing duplicates and fixing inconsistencies.

๐Ÿ”น Arranged โ€“ Analyzing the data through aggregation, grouping, and exploration to find patterns.

๐Ÿ”น Presented Visually โ€“ Using charts and dashboards to make insights easy to understand.

๐Ÿ”น Explained with a Story โ€“ Connecting insights to real business problems and context.

๐Ÿ”น Actionable โ€“ Turning insights into better decisions and improvements.

๐Ÿ“Š Great analysts donโ€™t just analyze data โ€” they turn it into decisions that create value.
  • โค 2
Post #2104 1.68K
๐Ÿง  SQL Interview Question (Moderateโ€“Tricky & Identifying Users with Increasing Transactions)
๐Ÿ“Œ

transactions(transaction_id, user_id, transaction_date, amount)

โ“ Ques :

๐Ÿ‘‰ Find users whose transaction amount strictly increases with every new transaction.

๐Ÿงฉ How Interviewers Expect You to Think

โ€ข Sort transactions by date for each user
โ€ข Compare each amount with the previous one
โ€ข Identify users whose amounts always increase

๐Ÿ’ก SQL Solution

WITH t AS (
SELECT
user_id,
amount,
LAG(amount) OVER (
PARTITION BY user_id
ORDER BY transaction_date
) AS prev_amount
FROM transactions
)

SELECT user_id
FROM t
GROUP BY user_id
HAVING SUM(
CASE
WHEN prev_amount IS NOT NULL AND amount <= prev_amount
THEN 1 ELSE 0
END
) = 0;

๐Ÿ”ฅ Why This Question Is Powerful

โ€ข Tests understanding of LAG() with conditional logic
โ€ข Evaluates ability to validate patterns across sequential data
โ€ข Reflects real-world analytics like tracking user spending growth trends

โค๏ธ React if you want more tricky real interview-level SQL questions ๐Ÿš€
  • โค 4
Post #2102 1.52K
Top 100 Data Analyst Interview Questions

โœ… Data Analytics Basics
1. What is data analytics?
2. Difference between data analytics and data science?
3. What problems does a data analyst solve?
4. What are the types of data analytics?
5. What tools do data analysts use daily?
6. What is a KPI?
7. What is a metric vs KPI?
8. What is descriptive analytics?
9. What is diagnostic analytics?
10. What does a typical day of a data analyst look like?

Data and Databases
11. What is structured data?
12. What is semi-structured data?
13. What is unstructured data?
14. What is a database?
15. Difference between OLTP and OLAP?
16. What is a primary key?
17. What is a foreign key?
18. What is a fact table?
19. What is a dimension table?
20. What is a data warehouse?

SQL for Data Analysts
21. What is SELECT used for?
22. Difference between WHERE and HAVING?
23. What is GROUP BY?
24. What are aggregate functions?
25. Difference between INNER and LEFT JOIN?
26. What are subqueries?
27. What is a CTE?
28. How do you handle duplicates in SQL?
29. How do you handle NULL values?
30. What are window functions?

Excel for Data Analysis
31. What are pivot tables?
32. Difference between VLOOKUP and XLOOKUP?
33. What is conditional formatting?
34. What are COUNTIFS and SUMIFS?
35. What is data validation?
36. How do you remove duplicates in Excel?
37. What is IF formula used for?
38. Difference between relative and absolute reference?
39. How do you clean data in Excel?
40. What are common Excel mistakes analysts make?

Data Cleaning and Preparation
41. What is data cleaning?
42. How do you handle missing data?
43. How do you treat outliers?
44. What is data normalization?
45. What is data standardization?
46. How do you check data quality?
47. What is duplicate data?
48. How do you validate source data?
49. What is data transformation?
50. Why is data preparation important?

Statistics for Data Analysts
51. Difference between mean and median?
52. What is standard deviation?
53. What is variance?
54. What is correlation?
55. Difference between correlation and causation?
56. What is an outlier?
57. What is sampling?
58. What is distribution?
59. What is skewness?
60. When do you use median over mean?

Data Visualization
61. Why is data visualization important?
62. Difference between bar and line chart?
63. When do you use a pie chart?
64. What is a dashboard?
65. What makes a good dashboard?
66. What is a KPI card?
67. Common visualization mistakes?
68. How do you choose the right chart?
69. What is drill down?
70. What is data storytelling?

Power BI or Tableau
71. What is Power BI or Tableau used for?
72. What is a data model?
73. What is a relationship?
74. What is DAX?
75. Difference between measure and calculated column?
76. What is Power Query?
77. What are filters and slicers?
78. What is row level security?
79. What is refresh schedule?
80. How do you optimize reports?

Business and Case Questions
81. How do you analyze a sales drop?
82. How do you define success metrics?
83. What business metrics have you worked on?
84. How do you prioritize insights?
85. How do you validate insights?
86. What questions do you ask stakeholders?
87. How do you handle vague requirements?
88. How do you measure business impact?
89. How do you explain numbers to managers?
90. How do you recommend actions?

Projects and Real World
91. Explain your best project.
92. What data sources did you use?
93. How did you clean the data?
94. What insight had the most impact?
95. What challenge did you face?
96. How did you solve it?
97. How did stakeholders use your dashboard?
98. What would you improve in your project?
99. How do you handle tight deadlines?
100. Why should we hire you as a data analyst?

Double Tap โ™ฅ๏ธ For Detailed Answers
  • โค 19
  • ๐Ÿ‘ 1
Post #2100 1.56K
Essential Excel Functions for Data Analysts ๐Ÿš€

1๏ธโƒฃ Basic Functions

SUM() โ€“ Adds a range of numbers. =SUM(A1:A10)

AVERAGE() โ€“ Calculates the average. =AVERAGE(A1:A10)

MIN() / MAX() โ€“ Finds the smallest/largest value. =MIN(A1:A10)


2๏ธโƒฃ Logical Functions

IF() โ€“ Conditional logic. =IF(A1>50, "Pass", "Fail")

IFS() โ€“ Multiple conditions. =IFS(A1>90, "A", A1>80, "B", TRUE, "C")

AND() / OR() โ€“ Checks multiple conditions. =AND(A1>50, B1<100)


3๏ธโƒฃ Text Functions

LEFT() / RIGHT() / MID() โ€“ Extract text from a string.

=LEFT(A1, 3) (First 3 characters)

=MID(A1, 3, 2) (2 characters from the 3rd position)


LEN() โ€“ Counts characters. =LEN(A1)

TRIM() โ€“ Removes extra spaces. =TRIM(A1)

UPPER() / LOWER() / PROPER() โ€“ Changes text case.


4๏ธโƒฃ Lookup Functions

VLOOKUP() โ€“ Searches for a value in a column.

=VLOOKUP(1001, A2:B10, 2, FALSE)


HLOOKUP() โ€“ Searches in a row.

XLOOKUP() โ€“ Advanced lookup replacing VLOOKUP.

=XLOOKUP(1001, A2:A10, B2:B10, "Not Found")



5๏ธโƒฃ Date & Time Functions

TODAY() โ€“ Returns the current date.

NOW() โ€“ Returns the current date and time.

YEAR(), MONTH(), DAY() โ€“ Extracts parts of a date.

DATEDIF() โ€“ Calculates the difference between two dates.


6๏ธโƒฃ Data Cleaning Functions

REMOVE DUPLICATES โ€“ Found in the "Data" tab.

CLEAN() โ€“ Removes non-printable characters.

SUBSTITUTE() โ€“ Replaces text within a string.

=SUBSTITUTE(A1, "old", "new")



7๏ธโƒฃ Advanced Functions

INDEX() & MATCH() โ€“ More flexible alternative to VLOOKUP.

TEXTJOIN() โ€“ Joins text with a delimiter.

UNIQUE() โ€“ Returns unique values from a range.

FILTER() โ€“ Filters data dynamically.

=FILTER(A2:B10, B2:B10>50)



8๏ธโƒฃ Pivot Tables & Power Query

PIVOT TABLES โ€“ Summarizes data dynamically.

GETPIVOTDATA() โ€“ Extracts data from a Pivot Table.

POWER QUERY โ€“ Automates data cleaning & transformation.


You can find Free Excel Resources here: https://t.me/excel_data

Hope it helps :)

#dataanalytics
  • โค 4
Post #2098 1.73K
๐Ÿ“Š Essential SQL Concepts Every Data Analyst Must Know

๐Ÿš€ SQL is the most important skill for Data Analysts. Almost every analytics job requires working with databases to extract, filter, analyze, and summarize data.

Understanding the following SQL concepts will help you write efficient queries and solve real business problems with data.

1๏ธโƒฃ SELECT Statement (Data Retrieval)

What it is: Retrieves data from a table.

SELECT name, salary
FROM employees;


Use cases: Retrieving specific columns, viewing datasets, extracting required information.

2๏ธโƒฃ WHERE Clause (Filtering Data)

What it is: Filters rows based on specific conditions.

SELECT *
FROM orders
WHERE order_amount > 500;


Common conditions: =, >, <, >=, <=, BETWEEN, IN, LIKE

3๏ธโƒฃ ORDER BY (Sorting Data)

What it is: Sorts query results in ascending or descending order.

SELECT name, salary
FROM employees
ORDER BY salary DESC;


Sorting options: ASC (default), DESC

4๏ธโƒฃ GROUP BY (Aggregation)

What it is: Groups rows with same values into summary rows.

SELECT department, COUNT(*)
FROM employees
GROUP BY department;


Use cases: Sales per region, customers per country, orders per product category.

5๏ธโƒฃ Aggregate Functions

What they do: Perform calculations on multiple rows.

SELECT AVG(salary)
FROM employees;


Common functions: COUNT(), SUM(), AVG(), MIN(), MAX()

6๏ธโƒฃ HAVING Clause

What it is: Filters grouped data after aggregation.

SELECT department, COUNT(*)
FROM employees
GROUP BY department
HAVING COUNT(*) > 5;


Key difference: WHERE filters rows before grouping, HAVING filters groups after aggregation.

7๏ธโƒฃ SQL JOINS (Combining Tables)

What they do: Combine tables.

-- INNER JOIN
SELECT orders.order_id, customers.customer_name
FROM orders
INNER JOIN customers
ON orders.customer_id = customers.customer_id;


-- LEFT JOIN
SELECT customers.customer_name, orders.order_id
FROM customers
LEFT JOIN orders
ON customers.customer_id = orders.customer_id;


Common types: INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN

8๏ธโƒฃ Subqueries

What it is: Query inside another query.

SELECT name
FROM employees
WHERE salary > (SELECT AVG(salary) FROM employees);


Use cases: Comparing values, filtering based on aggregated results.

9๏ธโƒฃ Common Table Expressions (CTE)

What it is: Temporary result set used inside a query.

WITH high_salary AS (
SELECT name, salary
FROM employees
WHERE salary > 70000
)
SELECT *
FROM high_salary;


Benefits: Cleaner queries, easier debugging, better readability.

๐Ÿ”Ÿ Window Functions

What they do: Perform calculations across rows related to current row.

SELECT name, salary, RANK() OVER (ORDER BY salary DESC) AS salary_rank
FROM employees;


Common functions: ROW_NUMBER(), RANK(), DENSE_RANK(), LAG(), LEAD()

Why SQL is Critical for Data Analysts
โ€ข Extract data from databases
โ€ข Analyze large datasets efficiently
โ€ข Generate reports and dashboards
โ€ข Support business decision-making

SQL Resources: https://whatsapp.com/channel/0029VanC5rODzgT6TiTGoa1v

Double Tap โ™ฅ๏ธ For More
  • โค 5
  • ๐Ÿ‘ 1
Post #2095 1.87K
๐Ÿ“Š Interviewer: How do you remove duplicate records in SQL?

๐Ÿ‘‹ Me: We can remove duplicates using DISTINCT, GROUP BY, or delete duplicate rows using ROW_NUMBER().


โœ… 1๏ธโƒฃ Using DISTINCT (to fetch unique values)

SELECT DISTINCT column_name
FROM employees;


๐Ÿ‘‰ Returns unique records but does not delete duplicates.


โœ… 2๏ธโƒฃ Using GROUP BY (to identify duplicates)

SELECT name, COUNT(*)
FROM employees
GROUP BY name
HAVING COUNT(*) > 1;


๐Ÿ‘‰ Helps find duplicate records.


โœ… 3๏ธโƒฃ Delete Duplicates Using ROW_NUMBER() (Most Important โญ)
(Keeps one record and deletes others)

DELETE FROM employees
WHERE id IN (
SELECT id FROM (
SELECT id,
ROW_NUMBER() OVER (
PARTITION BY name, salary
ORDER BY id
) AS rn
FROM employees
) t
WHERE rn > 1
);


๐Ÿง  Logic Breakdown:

- DISTINCT โ†’ shows unique records
- GROUP BY โ†’ identifies duplicates
- ROW_NUMBER() โ†’ removes duplicates safely


โœ… Use Case: Data cleaning, ETL processes, data quality checks.

๐Ÿ’ก Tip: Always take a backup before deleting duplicate records.

๐Ÿ’ฌ Tap โค๏ธ for more!
  • โค 2
Post #2093 2.15K
  • โค 2
Post #2085 1.91K
SQL beginner to advanced level
Post #2083 1.34K
๐Ÿง  SQL Interview Question (Moderate & Revenue Analysis)
๐Ÿ“Œ

orders(order_id, customer_id, order_amount)

โ“ Ques :

๐Ÿ‘‰ Find customers who contribute more than 30% of the total company revenue.

๐Ÿงฉ How Interviewers Expect You to Think

โ€ข Calculate overall total revenue
โ€ข Aggregate revenue at customer level
โ€ข Compare individual contribution against total
โ€ข Avoid recalculating total multiple times inefficiently

๐Ÿ’ก SQL Solution

WITH total_revenue AS (
SELECT SUM(order_amount) AS total_rev
FROM orders
),
customer_revenue AS (
SELECT
customer_id,
SUM(order_amount) AS cust_rev
FROM orders
GROUP BY customer_id
)
SELECT c.customer_id
FROM customer_revenue c
CROSS JOIN total_revenue t
WHERE c.cust_rev > 0.30 * t.total_rev;

๐Ÿ”ฅ Why This Question Is Powerful

โ€ข Tests percentage-based business logic
โ€ข Evaluates ability to combine multiple aggregations
โ€ข Reflects real-world Pareto (80/20) analysis scenarios
โ€ข Common in product, growth & revenue analytics interviews

โค๏ธ React if you want more real interview-level SQL questions
  • โค 1
Post #2082 1.46K
1. What is the difference between the RANK() and DENSE_RANK() functions?

The RANK() function in the result set defines the rank of each row within your ordered partition. If both rows have the same rank, the next number in the ranking will be the previous rank plus a number of duplicates. If we have three records at rank 4, for example, the next level indicated is 7. The DENSE_RANK() function assigns a distinct rank to each row within a partition based on the provided column value, with no gaps. If we have three records at rank 4, for example, the next level indicated is 5.

2. Explain One-hot encoding and Label Encoding. How do they affect the dimensionality of the given dataset?

One-hot encoding is the representation of categorical variables as binary vectors. Label Encoding is converting labels/words into numeric form. Using one-hot encoding increases the dimensionality of the data set. Label encoding doesnโ€™t affect the dimensionality of the data set. One-hot encoding creates a new variable for each level in the variable whereas, in Label encoding, the levels of a variable get encoded as 1 and 0.

3. Explain the Difference Between Tableau Worksheet, Dashboard, Story, and Workbook in Tableau?

Tableau uses a workbook and sheet file structure, much like Microsoft Excel.
A workbook contains sheets, which can be a worksheet, dashboard, or a story.
A worksheet contains a single view along with shelves, legends, and the Data pane.
A dashboard is a collection of views from multiple worksheets.
A story contains a sequence of worksheets or dashboards that work together to convey information.

4. How can you split a column into 2 or more columns?

You can split a column into 2 or more columns by following the below steps:
1. Select the cell that you want to split. Then, navigate to the Data tab, after that, select Text to Columns. 2. Select the delimiter. 3. Choose the column data format and select the destination you want to display the split. 4. The final output will look like below where the text is split into multiple columns.

5. Do you wanna make your career in Data Science & Analytics but don't know how to start ?

https://t.me/sqlspecialist/851

Here are free resources that will make you technically strong enough to crack any Data Analyst and also learn Pro Career Growth Hacks to land on your Dream Job.
  • โค 4
Post #2080 1.72K
๐Ÿง  SQL Interview Question (Moderate & Analytical)
๐Ÿ“Œ

events(user_id, event_name, event_date)

-- event_name values: 'Visited', 'Added_to_Cart', 'Purchased'

โ“ Ques :

๐Ÿ‘‰ Find users who added a product to cart but never completed the purchase.

๐Ÿงฉ How Interviewers Expect You to Think

โ€ข Understand funnel stage logic
โ€ข Apply conditional aggregation correctly
โ€ข Ensure absence of a specific event
โ€ข Avoid double counting users

๐Ÿ’ก SQL Solution

SELECT
user_id
FROM events
GROUP BY user_id
HAVING
SUM(CASE WHEN event_name = 'Added_to_Cart' THEN 1 ELSE 0 END) > 0
AND SUM(CASE WHEN event_name = 'Purchased' THEN 1 ELSE 0 END) = 0;

๐Ÿ”ฅ Why This Question Is Powerful

โ€ข Tests real business thinking (conversion funnel analysis)
โ€ข Checks ability to detect missing conditions
โ€ข Common in product & e-commerce analytics interviews
โ€ข Evaluates aggregation + logical filtering skills together

โค๏ธ React if you want more real interview-level SQL questions
  • โค 7
Post #2079 2.01K
๐Ÿง  SQL Interview Question (Tricky & Logic-Based)
๐Ÿ“Œ

logins(user_id, login_date)

โ“ Ques :

๐Ÿ‘‰ Find users who logged in for 3 or more consecutive days.

๐Ÿงฉ How Interviewers Expect You to Think

โ€ข Understand consecutive date logic
โ€ข Use date arithmetic smartly
โ€ข Create groups using row-number difference trick
โ€ข Avoid complex self-joins
โ€ข Aggregate after forming streak groups

๐Ÿ’ก SQL Solution

WITH numbered_logins AS (
SELECT
user_id,
login_date,
ROW_NUMBER() OVER (
PARTITION BY user_id
ORDER BY login_date
) AS rn
FROM logins
),
grouped_logins AS (
SELECT
user_id,
login_date,
DATE_SUB(login_date, INTERVAL rn DAY) AS grp
FROM numbered_logins
)

SELECT
user_id
FROM grouped_logins
GROUP BY user_id, grp
HAVING COUNT(*) >= 3;

๐Ÿ”ฅ Why this question is powerful:

โ€ข Tests advanced window function usage
โ€ข Checks understanding of gaps & islands concept
โ€ข Evaluates real-world product analytics thinking
โ€ข Very common in growth / engagement analytics interviews

โค๏ธ React if you want more scenario-based SQL questions
  • โค 6
Post #2078 1.95K
๐Ÿง  SQL Interview Question (Commonly Asked)
๐Ÿ“Œ

products(product_id, product_name, category_id, price)

โ“ Ques :

๐Ÿ‘‰ Find the second highest priced product in each category.

๐Ÿงฉ How Interviewers Expect You to Think

โ€ข Partition data by category
โ€ข Rank products based on price (descending)
โ€ข Understand difference between RANK, DENSE_RANK, and ROW_NUMBER
โ€ข Handle ties properly
โ€ข Filter after ranking logic

๐Ÿ’ก SQL Solution

WITH ranked_products AS (
SELECT
product_id,
product_name,
category_id,
price,
DENSE_RANK() OVER (
PARTITION BY category_id
ORDER BY price DESC
) AS price_rank
FROM products
)

SELECT
product_id,
product_name,
category_id,
price
FROM ranked_products
WHERE price_rank = 2;

๐Ÿ”ฅ Why this question is powerful:

โ€ข Tests window functions deeply
โ€ข Checks ranking logic understanding
โ€ข Very common in Data Analyst interviews

โค๏ธ React if you want more scenario-based SQL questions
  • โค 6
Older posts โ†’
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook โ†’Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 โ†’