Data Analyst Interview Resources
51.8K subscribers
344 photos
1 video
53 files
406 links
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
Download Telegram
๐Ÿ”ฅ Top SQL Interview Questions with Answers

๐ŸŽฏ 1๏ธโƒฃ Find 2nd Highest Salary
๐Ÿ“Š Table: employees
id | name | salary
1 | Rahul | 50000
2 | Priya | 70000
3 | Amit | 60000
4 | Neha | 70000

โ“ Problem Statement: Find the second highest distinct salary from the employees table.

โœ… Solution
SELECT MAX(salary) FROM employees WHERE salary < ( SELECT MAX(salary) FROM employees );

๐ŸŽฏ 2๏ธโƒฃ Find Nth Highest Salary
๐Ÿ“Š Table: employees
id | name | salary
1 | A | 100
2 | B | 200
3 | C | 300
4 | D | 200

โ“ Problem Statement: Write a query to find the 3rd highest salary.

โœ… Solution
SELECT salary FROM ( SELECT salary, DENSE_RANK() OVER(ORDER BY salary DESC) r FROM employees ) t WHERE r = 3;

๐ŸŽฏ 3๏ธโƒฃ Find Duplicate Records
๐Ÿ“Š Table: employees
id | name
1 | Rahul
2 | Amit
3 | Rahul
4 | Neha

โ“ Problem Statement: Find all duplicate names in the employees table.

โœ… Solution
SELECT name, COUNT(*) FROM employees GROUP BY name HAVING COUNT(*) > 1;

๐ŸŽฏ 4๏ธโƒฃ Customers with No Orders
๐Ÿ“Š Table: customers
customer_id | name
1 | Rahul
2 | Priya
3 | Amit

๐Ÿ“Š Table: orders
order_id | customer_id
101 | 1
102 | 2

โ“ Problem Statement: Find customers who have not placed any orders.

โœ… Solution
SELECT c.name FROM customers c LEFT JOIN orders o ON c.customer_id = o.customer_id WHERE o.customer_id IS NULL;

๐ŸŽฏ 5๏ธโƒฃ Top 3 Salaries per Department
๐Ÿ“Š Table: employees
name | department | salary
A | IT | 100
B | IT | 200
C | IT | 150
D | HR | 120
E | HR | 180

โ“ Problem Statement: Find the top 3 highest salaries in each department.

โœ… Solution
SELECT * FROM ( SELECT name, department, salary, ROW_NUMBER() OVER( PARTITION BY department ORDER BY salary DESC ) r FROM employees ) t WHERE r <= 3;

๐ŸŽฏ 6๏ธโƒฃ Running Total of Sales
๐Ÿ“Š Table: sales
date | sales
2024-01-01 | 100
2024-01-02 | 200
2024-01-03 | 300

โ“ Problem Statement: Calculate the running total of sales by date.

โœ… Solution
SELECT date, sales, SUM(sales) OVER(ORDER BY date) AS running_total FROM sales;

๐ŸŽฏ 7๏ธโƒฃ Employees Above Average Salary
๐Ÿ“Š Table: employees
name | salary
A | 100
B | 200
C | 300

โ“ Problem Statement: Find employees earning more than the average salary.

โœ… Solution
SELECT name, salary FROM employees WHERE salary > ( SELECT AVG(salary) FROM employees );

๐ŸŽฏ 8๏ธโƒฃ Department with Highest Total Salary
๐Ÿ“Š Table: employees
name | department | salary
A | IT | 100
B | IT | 200
C | HR | 500

โ“ Problem Statement: Find the department with the highest total salary.

โœ… Solution
SELECT department, SUM(salary) AS total_salary FROM employees GROUP BY department ORDER BY total_salary DESC LIMIT 1;

๐ŸŽฏ 9๏ธโƒฃ Customers Who Placed Orders
๐Ÿ“Š Tables: Same as Q4
โ“ Problem Statement: Find customers who have placed at least one order.

โœ… Solution
SELECT name FROM customers c WHERE EXISTS ( SELECT 1 FROM orders o WHERE c.customer_id = o.customer_id );

๐ŸŽฏ ๐Ÿ”Ÿ Remove Duplicate Records
๐Ÿ“Š Table: employees
id | name
1 | Rahul
2 | Rahul
3 | Amit

โ“ Problem Statement: Delete duplicate records but keep one unique record.

โœ… Solution
DELETE FROM employees WHERE id NOT IN ( SELECT MIN(id) FROM employees GROUP BY name );

๐Ÿš€ Pro Tip:
๐Ÿ‘‰ In interviews:
First explain logic
Then write query
Then optimize

Double Tap โ™ฅ๏ธ For More
โค4
๐Ÿง  SQL Interview Question (Detect Negative Account Balance)
๐Ÿ“Œ

transactions(txn_id, txn_date, amount)
(credit = +ve, debit = -ve)

โ“ Ques :

๐Ÿ‘‰ Find the first date when account balance becomes negative

๐Ÿ‘‰ Return txn_date

๐Ÿงฉ How Interviewers Expect You to Think

โ€ข Calculate running balance over time ๐Ÿ’ฐ
โ€ข Use cumulative sum
โ€ข Track when balance drops below zero
โ€ข Return first occurrence

๐Ÿ’ก SQL Solution

WITH balance_cte AS (
SELECT
txn_date,
SUM(amount) OVER (
ORDER BY txn_date
) AS running_balance
FROM transactions
)

SELECT txn_date
FROM balance_cte
WHERE running_balance < 0
ORDER BY txn_date
LIMIT 1;

๐Ÿ”ฅ Why This Question Is Powerful

โ€ข Tests cumulative sum (window function) ๐Ÿง 
โ€ข Very common in fintech & transaction analysis
โ€ข Checks real-world problem solving ability

โค๏ธ React for more SQL interview questions ๐Ÿš€
โค4
Freshers are getting paid 10 - 15 Lakhs by learning AI & ML skill

๐Ÿ“ข ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—”๐—น๐—ฒ๐—ฟ๐˜ โ€“ ๐—”๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ถ๐—ฎ๐—น ๐—œ๐—ป๐˜๐—ฒ๐—น๐—น๐—ถ๐—ด๐—ฒ๐—ป๐—ฐ๐—ฒ ๐—ฎ๐—ป๐—ฑ ๐— ๐—ฎ๐—ฐ๐—ต๐—ถ๐—ป๐—ฒ ๐—Ÿ๐—ฒ๐—ฎ๐—ฟ๐—ป๐—ถ๐—ป๐—ด

Open for all. No Coding Background Required

๐Ÿ“Š Learn AI/ML from Scratch
๐Ÿค– AI Tools & Automation
๐Ÿ“ˆ Build real world Projects for job ready portfolio
๐ŸŽ“ Vishlesan i-Hub, IIT Patna Certification Program

๐Ÿ”ฅDeadline :- 12th April

๐—”๐—ฝ๐—ฝ๐—น๐˜† ๐—ก๐—ผ๐˜„๐Ÿ‘‡ :- 

https://pdlink.in/41ZttiU
.
Get Placement Assistance With 5000+ Companies from Masai School
โค2
7 Misconceptions About Data Analytics (and Whatโ€™s Actually True): ๐Ÿ“Š๐Ÿš€

โŒ You need to be a math or statistics genius
โœ… Basic math + logical thinking is enough. Most real-world analytics is about understanding data, not complex formulas.

โŒ You must learn every tool before applying for jobs
โœ… Start with core tools (Excel, SQL, one BI tool). Master fundamentals โ€” tools can be learned on the job.

โŒ Data analytics is only about numbers
โœ… Itโ€™s about storytelling with data โ€” explaining insights clearly to non-technical stakeholders.

โŒ You need coding skills like a software developer
โœ… Not required. SQL + basic Python/R is enough for most analyst roles. Deep coding is optional, not mandatory.

โŒ Analysts just make dashboards all day
โœ… Dashboards are just one part. Real work includes data cleaning, business understanding, ad-hoc analysis, and decision support.

โŒ You need huge datasets to be a โ€œrealโ€ data analyst
โœ… Even small datasets can provide powerful insights if the questions are right.

โŒ Once you learn analytics, your learning is done
โœ… Data analytics evolves constantly โ€” new tools, business problems, and techniques mean continuous learning.

๐Ÿ’ฌ Tap โค๏ธ if you agree
โค5
๐—ง๐—ผ๐—ฝ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐˜€ ๐˜๐—ผ ๐—Ÿ๐—ฎ๐—ป๐—ฑ ๐—ฎ ๐—›๐—ถ๐—ด๐—ต-๐—ฃ๐—ฎ๐˜†๐—ถ๐—ป๐—ด ๐—๐—ผ๐—ฏ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿ”ฅ

Learn from scratch โ†’ Build real projects โ†’ Get placed

โœ… 2000+ Students Already Placed
๐Ÿค 500+ Hiring Partners
๐Ÿ’ผ Avg Salary: โ‚น7.4 LPA
๐Ÿš€ Highest Package: โ‚น41 LPA

Fullstack :- https://pdlink.in/4hO7rWY

Data Analytics :- https://pdlink.in/4fdWxJB

๐Ÿ“ˆ Donโ€™t just scrollโ€ฆ Start today & secure your 2026 job NOW
โœ… A-Z Data Science Roadmap (Beginner to Job Ready) ๐Ÿ“Š๐Ÿง 

1๏ธโƒฃ Learn Python Basics
โ€ข Variables, data types, loops, functions
โ€ข Libraries: NumPy, Pandas

2๏ธโƒฃ Data Cleaning Manipulation
โ€ข Handling missing values, duplicates
โ€ข Data wrangling with Pandas
โ€ข GroupBy, merge, pivot tables

3๏ธโƒฃ Data Visualization
โ€ข Matplotlib, Seaborn
โ€ข Plotly for interactive charts
โ€ข Visualizing distributions, trends, relationships

4๏ธโƒฃ Math for Data Science
โ€ข Statistics (mean, median, std, distributions)
โ€ข Probability basics
โ€ข Linear algebra (vectors, matrices)
โ€ข Calculus (for ML intuition)

5๏ธโƒฃ SQL for Data Analysis
โ€ข SELECT, JOIN, GROUP BY, subqueries
โ€ข Window functions
โ€ข Real-world queries on large datasets

6๏ธโƒฃ Exploratory Data Analysis (EDA)
โ€ข Univariate multivariate analysis
โ€ข Outlier detection
โ€ข Correlation heatmaps

7๏ธโƒฃ Machine Learning (ML)
โ€ข Supervised vs Unsupervised
โ€ข Regression, classification, clustering
โ€ข Train-test split, cross-validation
โ€ข Overfitting, regularization

8๏ธโƒฃ ML with scikit-learn
โ€ข Linear logistic regression
โ€ข Decision trees, random forest, SVM
โ€ข K-means clustering
โ€ข Model evaluation metrics (accuracy, RMSE, F1)

9๏ธโƒฃ Deep Learning (Basics)
โ€ข Neural networks, activation functions
โ€ข TensorFlow / PyTorch
โ€ข MNIST digit classifier

๐Ÿ”Ÿ Projects to Build
โ€ข Titanic survival prediction
โ€ข House price prediction
โ€ข Customer segmentation
โ€ข Sentiment analysis
โ€ข Dashboard + ML combo

1๏ธโƒฃ1๏ธโƒฃ Tools to Learn
โ€ข Jupyter Notebook
โ€ข Git GitHub
โ€ข Google Colab
โ€ข VS Code

1๏ธโƒฃ2๏ธโƒฃ Model Deployment
โ€ข Streamlit, Flask APIs
โ€ข Deploy on Render, Heroku or Hugging Face Spaces

1๏ธโƒฃ3๏ธโƒฃ Communication Skills
โ€ข Present findings clearly
โ€ข Build dashboards or reports
โ€ข Use storytelling with data

1๏ธโƒฃ4๏ธโƒฃ Portfolio Resume
โ€ข Upload projects on GitHub
โ€ข Write blogs on Medium/Kaggle
โ€ข Create a LinkedIn-optimized profile

๐Ÿ’ก Pro Tip: Learn by building real projects and explaining them simply!

๐Ÿ’ฌ Tap โค๏ธ for more!
โค6
Data Analytics Interview Questions with Answers Part-1: ๐Ÿ“ฑ

1. What is the difference between data analysis and data analytics?
โฆ Data analysis involves inspecting, cleaning, and modeling data to discover useful information and patterns for decision-making.
โฆ Data analytics is a broader process that includes data collection, transformation, analysis, and interpretation, often involving predictive and prescriptive techniques to drive business strategies.

2. Explain the data cleaning process you follow.
โฆ Identify missing, inconsistent, or corrupt data.
โฆ Handle missing data by imputation (mean, median, mode) or removal if appropriate.
โฆ Standardize formats (dates, strings).
โฆ Remove duplicates.
โฆ Detect and treat outliers.
โฆ Validate cleaned data against known business rules.

3. How do you handle missing or duplicate data?
โฆ Missing data: Identify patterns; if random, impute using statistical methods or predictive modeling; else consider domain knowledge before removal.
โฆ Duplicate data: Detect with key fields; remove exact duplicates or merge fuzzy duplicates based on context.

4. What is a primary key in a database? 
A primary key uniquely identifies each record in a table, ensuring entity integrity and enabling relationships between tables via foreign keys.

5. Write a SQL query to find the second highest salary in a table.
SELECT MAX(salary) 
FROM employees
WHERE salary < (SELECT MAX(salary) FROM employees);


6. Explain INNER JOIN vs LEFT JOIN with examples.
โฆ INNER JOIN: Returns only matching rows between two tables.
โฆ LEFT JOIN: Returns all rows from the left table, plus matching rows from the right; if no match, right columns are NULL.

Example:
SELECT * FROM A INNER JOIN B ON A.id = B.id;
SELECT * FROM A LEFT JOIN B ON A.id = B.id;


7. What are outliers? How do you detect and treat them?
โฆ Outliers are data points significantly different from others that can skew analysis.
โฆ Detect with boxplots, z-score (>3), or IQR method (values outside 1.5*IQR).
โฆ Treat by investigating causes, correcting errors, transforming data, or removing if theyโ€™re noise.

8. Describe what a pivot table is and how you use it. 
A pivot table is a data summarization tool that groups, aggregates (sum, average), and displays data cross-categorically. Used in Excel and BI tools for quick insights and reporting.

9. How do you validate a data modelโ€™s performance?
โฆ Use relevant metrics (accuracy, precision, recall for classification; RMSE, MAE for regression).
โฆ Perform cross-validation to check generalizability.
โฆ Test on holdout or unseen data sets.

10. What is hypothesis testing? Explain t-test and z-test.
โฆ Hypothesis testing assesses if sample data supports a claim about a population.
โฆ t-test: Used when sample size is small and population variance is unknown, often comparing means.
โฆ z-test: Used for large samples with known variance to test population parameters.

React โ™ฅ๏ธ for Part-2
โค8
๐——๐—ฎ๐˜๐—ฎ ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€, ๐——๐—ฎ๐˜๐—ฎ ๐—ฆ๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐˜„๐—ถ๐˜๐—ต ๐—”๐—œ ๐—ฎ๐—ฟ๐—ฒ ๐—ต๐—ถ๐—ด๐—ต๐—น๐˜† ๐—ฑ๐—ฒ๐—บ๐—ฎ๐—ป๐—ฑ๐—ถ๐—ป๐—ด ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿฎ๐Ÿฒ๐Ÿ˜

Learn Data Science and AI Taught by Top Tech professionals

60+ Hiring Drives Every Month

๐—›๐—ถ๐—ด๐—ต๐—น๐—ถ๐—ด๐—ต๐˜๐—ฒ๐˜€:- 
- 12.65 Lakhs Highest Salary
- 500+ Partner Companies
- 100% Job Assistance
- 5.7 LPA Average Salary

๐—ฅ๐—ฒ๐—ด๐—ถ๐˜€๐˜๐—ฒ๐—ฟ ๐—ก๐—ผ๐˜„๐Ÿ‘‡:-

 Online :- https://pdlink.in/4fdWxJB

๐Ÿ”น Hyderabad :- https://pdlink.in/4kFhjn3

๐Ÿ”น Pune:-  https://pdlink.in/45p4GrC

๐Ÿ”น Noida :-  https://linkpd.in/DaNoida

Hurry Up ๐Ÿƒโ€โ™‚๏ธ! Limited seats are available.
๐Ÿ”ฅ Top SQL Interview Questions with Answers

๐ŸŽฏ 1๏ธโƒฃ Find 2nd Highest Salary
๐Ÿ“Š Table: employees
id | name | salary
1 | Rahul | 50000
2 | Priya | 70000
3 | Amit | 60000
4 | Neha | 70000

โ“ Problem Statement: Find the second highest distinct salary from the employees table.

โœ… Solution
SELECT MAX(salary) FROM employees WHERE salary < ( SELECT MAX(salary) FROM employees );

๐ŸŽฏ 2๏ธโƒฃ Find Nth Highest Salary
๐Ÿ“Š Table: employees
id | name | salary
1 | A | 100
2 | B | 200
3 | C | 300
4 | D | 200

โ“ Problem Statement: Write a query to find the 3rd highest salary.

โœ… Solution
SELECT salary FROM ( SELECT salary, DENSE_RANK() OVER(ORDER BY salary DESC) r FROM employees ) t WHERE r = 3;

๐ŸŽฏ 3๏ธโƒฃ Find Duplicate Records
๐Ÿ“Š Table: employees
id | name
1 | Rahul
2 | Amit
3 | Rahul
4 | Neha

โ“ Problem Statement: Find all duplicate names in the employees table.

โœ… Solution
SELECT name, COUNT(*) FROM employees GROUP BY name HAVING COUNT(*) > 1;

๐ŸŽฏ 4๏ธโƒฃ Customers with No Orders
๐Ÿ“Š Table: customers
customer_id | name
1 | Rahul
2 | Priya
3 | Amit

๐Ÿ“Š Table: orders
order_id | customer_id
101 | 1
102 | 2

โ“ Problem Statement: Find customers who have not placed any orders.

โœ… Solution
SELECT c.name FROM customers c LEFT JOIN orders o ON c.customer_id = o.customer_id WHERE o.customer_id IS NULL;

๐ŸŽฏ 5๏ธโƒฃ Top 3 Salaries per Department
๐Ÿ“Š Table: employees
name | department | salary
A | IT | 100
B | IT | 200
C | IT | 150
D | HR | 120
E | HR | 180

โ“ Problem Statement: Find the top 3 highest salaries in each department.

โœ… Solution
SELECT * FROM ( SELECT name, department, salary, ROW_NUMBER() OVER( PARTITION BY department ORDER BY salary DESC ) r FROM employees ) t WHERE r <= 3;

๐ŸŽฏ 6๏ธโƒฃ Running Total of Sales
๐Ÿ“Š Table: sales
date | sales
2024-01-01 | 100
2024-01-02 | 200
2024-01-03 | 300

โ“ Problem Statement: Calculate the running total of sales by date.

โœ… Solution
SELECT date, sales, SUM(sales) OVER(ORDER BY date) AS running_total FROM sales;

๐ŸŽฏ 7๏ธโƒฃ Employees Above Average Salary
๐Ÿ“Š Table: employees
name | salary
A | 100
B | 200
C | 300

โ“ Problem Statement: Find employees earning more than the average salary.

โœ… Solution
SELECT name, salary FROM employees WHERE salary > ( SELECT AVG(salary) FROM employees );

๐ŸŽฏ 8๏ธโƒฃ Department with Highest Total Salary
๐Ÿ“Š Table: employees
name | department | salary
A | IT | 100
B | IT | 200
C | HR | 500

โ“ Problem Statement: Find the department with the highest total salary.

โœ… Solution
SELECT department, SUM(salary) AS total_salary FROM employees GROUP BY department ORDER BY total_salary DESC LIMIT 1;

๐ŸŽฏ 9๏ธโƒฃ Customers Who Placed Orders
๐Ÿ“Š Tables: Same as Q4
โ“ Problem Statement: Find customers who have placed at least one order.

โœ… Solution
SELECT name FROM customers c WHERE EXISTS ( SELECT 1 FROM orders o WHERE c.customer_id = o.customer_id );

๐ŸŽฏ ๐Ÿ”Ÿ Remove Duplicate Records
๐Ÿ“Š Table: employees
id | name
1 | Rahul
2 | Rahul
3 | Amit

โ“ Problem Statement: Delete duplicate records but keep one unique record.

โœ… Solution
DELETE FROM employees WHERE id NOT IN ( SELECT MIN(id) FROM employees GROUP BY name );

๐Ÿš€ Pro Tip:
๐Ÿ‘‰ In interviews:
First explain logic
Then write query
Then optimize

Double Tap โ™ฅ๏ธ For More
โค5
๐Ÿ”ฅ Power BI Interview Q&A ( Frequently Asked ๐Ÿ”ฅ)

๐Ÿ“Š Q1. What is the difference between a calculated column and a measure?

๐Ÿ‘‰ Calculated Column โ†’ Row-level, stored in memory
๐Ÿ‘‰ Measure โ†’ Aggregated, calculated on the fly
๐Ÿ‘‰ Use measures for performance & dynamic analysis

๐Ÿ“Š Q2. What is a star schema and why is it important?

๐Ÿ‘‰ Central fact table + surrounding dimension tables
๐Ÿ‘‰ Improves performance & scalability
๐Ÿ‘‰ Makes DAX simpler and more efficient

๐Ÿ“Š Q3. What are filter context and row context in DAX?

๐Ÿ‘‰ Row Context โ†’ Works at individual row level
๐Ÿ‘‰ Filter Context โ†’ Applies filters across data
๐Ÿ‘‰ Understanding both is key to writing correct DAX

๐Ÿ“Š Q4. What is the use of CALCULATE() in Power BI?

๐Ÿ‘‰ Modifies filter context
๐Ÿ‘‰ Used for advanced calculations
๐Ÿ‘‰ Core function for most complex DAX logic

๐Ÿ“Š Q5. How do you handle missing or null values in Power BI?

๐Ÿ‘‰ Use Power Query (Replace / Fill options)
๐Ÿ‘‰ Handle with DAX (COALESCE, IF)
๐Ÿ‘‰ Ensure clean data before building visuals

๐Ÿ”ฅ React with โ™ฅ๏ธ for more such questions
โค2
๐—”๐—œ/๐— ๐—Ÿ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ ๐—•๐˜†  ๐—ฉ๐—ถ๐˜€๐—ต๐—น๐—ฒ๐˜€๐—ฎ๐—ป ๐—ถ-๐—›๐˜‚๐—ฏ, ๐—œ๐—œ๐—ง ๐—ฃ๐—ฎ๐˜๐—ป๐—ฎ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป๐Ÿ˜

Freshers are getting paid 10 - 15 Lakhs by learning AI & ML skill

Upgrade your career with a beginner-friendly AI/ML certification.

๐Ÿ‘‰Open for all. No Coding Background Required
๐Ÿ’ป Learn AI/ML from Scratch
๐ŸŽ“ Build real world Projects for job ready portfolio 

๐Ÿ”ฅDeadline :- 19th April

    ๐—”๐—ฝ๐—ฝ๐—น๐˜† ๐—ก๐—ผ๐˜„๐Ÿ‘‡ :- 

https://pdlink.in/41ZttiU
.
Get Placement Assistance With 5000+ Companies
๐Ÿ”ฅ Pandas Interview Q&A (Frequently Asked ๐Ÿ”ฅ)

๐Ÿ“Š Q1. What is Pandas and why is it used?

๐Ÿ‘‰ Python library for data manipulation & analysis
๐Ÿ‘‰ Provides powerful data structures like DataFrame & Series
๐Ÿ‘‰ Used for cleaning, transforming, and analyzing data

๐Ÿ“Š Q2. What is the difference between Series and DataFrame?

๐Ÿ‘‰ Series โ†’ 1D labeled array (single column)
๐Ÿ‘‰ DataFrame โ†’ 2D tabular structure (rows & columns)
๐Ÿ‘‰ DataFrame is a collection of multiple Series

๐Ÿ“Š Q3. How do you handle missing values in Pandas?

๐Ÿ‘‰ isnull() / notnull() to detect missing values
๐Ÿ‘‰ fillna() to replace missing data
๐Ÿ‘‰ dropna() to remove missing records

๐Ÿ“Š Q4. What is the difference between loc[] and iloc[]?

๐Ÿ‘‰ loc[] โ†’ Label-based indexing
๐Ÿ‘‰ iloc[] โ†’ Integer position-based indexing
๐Ÿ‘‰ Use loc for named indexes, iloc for numeric positions

๐Ÿ“Š Q5. What is groupby() in Pandas?

๐Ÿ‘‰ Used for splitting data into groups
๐Ÿ‘‰ Apply aggregation functions (sum, mean, count)
๐Ÿ‘‰ Essential for data summarization

๐Ÿ“Š Q6. What is the difference between merge() and concat()?

๐Ÿ‘‰ merge() โ†’ SQL-like joins (inner, left, right, outer)
๐Ÿ‘‰ concat() โ†’ Stacks data vertically or horizontally
๐Ÿ‘‰ Use merge for relational data combining

๐Ÿ“Š Q7. How do you filter data in Pandas?

๐Ÿ‘‰ Use boolean conditions (df[df['col'] > value])
๐Ÿ‘‰ Multiple conditions using & and |
๐Ÿ‘‰ Helps in extracting specific insights

๐Ÿ“Š Q8. What is apply() function?

๐Ÿ‘‰ Applies a function across rows or columns
๐Ÿ‘‰ Used for custom transformations
๐Ÿ‘‰ More flexible than built-in functions

๐Ÿ”ฅ React with โ™ฅ๏ธ for more such questions
โค2
Hello Everyone ๐Ÿ‘‹,

Weโ€™re excited to announce the launch of our official WhatsApp Channel! ๐ŸŽ‰

Here, youโ€™ll regularly find:
๐Ÿ“ข Data Analytics & Data Science Jobs
๐Ÿ“š Notes and Study Material
๐Ÿ’ก Career Guidance & Interview Tips

Join this channel to stay updated for free, just like our Telegram community!

๐Ÿ‘‰ Join Now: https://whatsapp.com/channel/0029Vaxjq5a4dTnKNrdeiZ0J

Letโ€™s keep learning and growing together ๐Ÿš€
โค2
๐—™๐˜‚๐—น๐—น๐˜€๐˜๐—ฎ๐—ฐ๐—ธ ๐——๐—ฒ๐˜ƒ๐—ฒ๐—น๐—ผ๐—ฝ๐—บ๐—ฒ๐—ป๐˜ ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ช๐—ถ๐˜๐—ต ๐—š๐—ฒ๐—ป๐—”๐—œ๐Ÿ˜

Curriculum designed and taught by alumni from IITs & leading tech companies, with practical GenAI applications.

* 2000+ Students Placed
* 41LPA Highest Salary
* 500+ Partner Companies
- 7.4 LPA Avg Salary

๐—ฅ๐—ฒ๐—ด๐—ถ๐˜€๐˜๐—ฒ๐—ฟ ๐—ก๐—ผ๐˜„๐Ÿ‘‡:-

๐Ÿ”น Online :- https://pdlink.in/4hO7rWY

๐Ÿ”น Hyderabad :- https://pdlink.in/4cJUWtx

๐Ÿ”น Pune :-  https://pdlink.in/3YA32zi

๐Ÿ”น Noida :-  https://linkpd.in/NoidaFSD

Hurry Up ๐Ÿƒโ€โ™‚๏ธ! Limited seats are available.
โค1
SQL Interview Questions with Answers Part-1: โ˜‘๏ธ

1. What is SQL? 
   SQL (Structured Query Language) is a standardized programming language designed to manage and manipulate relational databases. It allows you to query, insert, update, and delete data, as well as create and modify schema objects like tables and views.

2. Differentiate between SQL and NoSQL databases. 
   SQL databases are relational, table-based, and use structured query language with fixed schemas, ideal for complex queries and transactions. NoSQL databases are non-relational, can be document, key-value, graph, or column-oriented, and are schema-flexible, designed for scalability and handling unstructured data.

3. What are the different types of SQL commands?
โฆ DDL (Data Definition Language): CREATE, ALTER, DROP (define and modify structure)
โฆ DML (Data Manipulation Language): SELECT, INSERT, UPDATE, DELETE (data operations)
โฆ DCL (Data Control Language): GRANT, REVOKE (permission control)
โฆ TCL (Transaction Control Language): COMMIT, ROLLBACK, SAVEPOINT (transaction management)

4. Explain the difference between WHERE and HAVING clauses.
โฆ WHERE filters rows before grouping (used with SELECT, UPDATE).
โฆ HAVING filters groups after aggregation (used with GROUP BY), e.g., filtering aggregated results like sums or counts.

5. Write a SQL query to find the second highest salary in a table. 
   Using a subquery:
SELECT MAX(salary) FROM employees  
WHERE salary < (SELECT MAX(salary) FROM employees);

Or using DENSE_RANK():
SELECT salary FROM (  
  SELECT salary, DENSE_RANK() OVER (ORDER BY salary DESC) as rnk 
  FROM employees) t 
WHERE rnk = 2;


6. What is a JOIN? Explain different types of JOINs. 
   A JOIN combines rows from two or more tables based on a related column:
โฆ INNER JOIN: returns matching rows from both tables.
โฆ LEFT JOIN (LEFT OUTER JOIN): all rows from the left table, matched rows from right.
โฆ RIGHT JOIN (RIGHT OUTER JOIN): all rows from right table, matched rows from left.
โฆ FULL JOIN (FULL OUTER JOIN): all rows when thereโ€™s a match in either table.
โฆ CROSS JOIN: Cartesian product of both tables.

7. How do you optimize slow-performing SQL queries?
โฆ Use indexes appropriately to speed up lookups.
โฆ Avoid SELECT *; only select necessary columns.
โฆ Use joins carefully; filter early with WHERE clauses.
โฆ Analyze execution plans to identify bottlenecks.
โฆ Avoid unnecessary subqueries; use EXISTS or JOINs.
โฆ Limit result sets with pagination if dealing with large datasets.

8. What is a primary key? What is a foreign key?
โฆ Primary Key: A unique identifier for records in a table; it cannot be NULL.
โฆ Foreign Key: A field that creates a link between two tables by referring to the primary key in another table, enforcing referential integrity.

9. What are indexes? Explain clustered and non-clustered indexes.
โฆ Indexes speed up data retrieval by providing quick lookups.
โฆ Clustered Index: Sorts and stores the actual data rows in the table based on the key; a table can have only one clustered index.
โฆ Non-Clustered Index: Creates a separate structure that points to the data rows; tables can have multiple non-clustered indexes.

10. Write a SQL query to fetch the top 5 records from a table. 
    In SQL Server and PostgreSQL:
SELECT * FROM table_name  
ORDER BY some_column DESC 
LIMIT 5; 

In SQL Server (older syntax):
SELECT TOP 5 * FROM table_name  
ORDER BY some_column DESC; 


React โ™ฅ๏ธ for Part 2
โค1
๐—œ๐—œ๐—ง & ๐—œ๐—œ๐—  ๐—ข๐—ณ๐—ณ๐—ฒ๐—ฟ๐—ถ๐—ป๐—ด ๐—–๐—ฒ๐—ฟ๐˜๐—ถ๐—ณ๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ๐˜€๐Ÿ˜

๐Ÿ‘‰Open for all. No Coding Background Required

AI/ML By IIT Patna  :- https://pdlink.in/41ZttiU

Business Analytics With AI :- https://pdlink.in/41h8gRt

Digital Marketing With AI :-https://pdlink.in/47BxVYG

AI/ML By IIT Mandi :- https://pdlink.in/4cvXBaz

๐Ÿ”ฅGet Placement Assistance With 5000+ Companies๐ŸŽ“
โค1
Most Asked SQL Interview Questions at MAANG Companies๐Ÿ”ฅ๐Ÿ”ฅ

Preparing for an SQL Interview at MAANG Companies? Here are some crucial SQL Questions you should be ready to tackle:

1. How do you retrieve all columns from a table?

SELECT * FROM table_name;

2. What SQL statement is used to filter records?

SELECT * FROM table_name
WHERE condition;

The WHERE clause is used to filter records based on a specified condition.

3. How can you join multiple tables? Describe different types of JOINs.

SELECT columns
FROM table1
JOIN table2 ON table1.column = table2.column
JOIN table3 ON table2.column = table3.column;

Types of JOINs:

1. INNER JOIN: Returns records with matching values in both tables

SELECT * FROM table1
INNER JOIN table2 ON table1.column = table2.column;

2. LEFT JOIN: Returns all records from the left table & matched records from the right table. Unmatched records will have NULL values.

SELECT * FROM table1
LEFT JOIN table2 ON table1.column = table2.column;

3. RIGHT JOIN: Returns all records from the right table & matched records from the left table. Unmatched records will have NULL values.

SELECT * FROM table1
RIGHT JOIN table2 ON table1.column = table2.column;

4. FULL JOIN: Returns records when there is a match in either left or right table. Unmatched records will have NULL values.

SELECT * FROM table1
FULL JOIN table2 ON table1.column = table2.column;

4. What is the difference between WHERE & HAVING clauses?

WHERE: Filters records before any groupings are made.

SELECT * FROM table_name
WHERE condition;

HAVING: Filters records after groupings are made.

SELECT column, COUNT(*)
FROM table_name
GROUP BY column
HAVING COUNT(*) > value;

5. How do you calculate average, sum, minimum & maximum values in a column?

Average: SELECT AVG(column_name) FROM table_name;

Sum: SELECT SUM(column_name) FROM table_name;

Minimum: SELECT MIN(column_name) FROM table_name;

Maximum: SELECT MAX(column_name) FROM table_name;

Here you can find essential SQL Interview Resources๐Ÿ‘‡
https://t.me/mysqldata

Like this post if you need more ๐Ÿ‘โค๏ธ

Hope it helps :)
โค2
Every day you login... Work.. and logout.

Days become months.
Months become years.

But nothing changes.

Same role. Same work. Same pay.

Meanwhile, others are moving into Cloud & Data Engineeringโ€ฆ
building real systems and earning better.

If you are looking to get into Azure Data Engineering then..

๐—๐—ผ๐—ถ๐—ป ๐˜๐—ต๐—ฒ 3 months ๐—Ÿ๐—ถ๐˜ƒ๐—ฒ ๐—ฃ๐—ฟ๐—ผ๐—ด๐—ฟ๐—ฎ๐—บ

๐Ÿ“Œ Start Date: 20th April 2026

โฐ Time: 9 PM โ€“ 10 PM IST | Monday

๐Ÿ‘‰ ๐Œ๐ž๐ฌ๐ฌ๐š๐ ๐ž ๐ฎ๐ฌ ๐จ๐ง ๐–๐ก๐š๐ญ๐ฌ๐€๐ฉ๐ฉ:

https://wa.me/917032678595?text=Interested_to_join_Azure_Data_Engineering_live_sessions

๐Ÿ”น ๐—ฅ๐—ฒ๐—ด๐—ถ๐˜€๐˜๐—ฒ๐—ฟ ๐—ต๐—ฒ๐—ฟ๐—ฒ:

https://forms.gle/DRXEhvyG9ENDsNYR9

๐ŸŽŸ๏ธ ๐—๐—ผ๐—ถ๐—ป ๐—ช๐—ต๐—ฎ๐˜๐˜€๐—”๐—ฝ๐—ฝ ๐—š๐—ฟ๐—ผ๐˜‚๐—ฝ:

https://chat.whatsapp.com/GCG3Si7vhrJD1evV9NAbhL

๐Ÿ€ ๐—–๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ ๐—–๐—ผ๐—ป๐˜๐—ฒ๐—ป๐˜:

https://drive.google.com/file/d/1QKqhRMHx2SDNDTmPAf3_54fA6LljKHm6/view
โค1
โœ… End to End Data Analytics Project Roadmap

Step 1. Define the business problem
Start with a clear question.
Example: Why did sales drop last quarter?
Decide success metric.
Example: Revenue, growth rate.

Step 2. Understand the data
Identify data sources.
Example: Sales table, customers table.
Check rows, columns, data types.
Spot missing values.

Step 3. Clean the data
Remove duplicates.
Handle missing values.
Fix data types.
Standardize text.
Tools: Excel or Power Query SQL for large datasets.

Step 4. Explore the data
Basic summaries.
Trends over time.
Top and bottom performers.
Examples: Monthly sales trend, top 10 products, region-wise revenue.

Step 5. Analyze and find insights
Compare periods.
Segment data.
Identify drivers.
Examples: Sales drop in one region, high churn in one customer segment.

Step 6. Create visuals and dashboard
KPIs on top.
Trends in middle.
Breakdown charts below.
Tools: Power BI or Tableau.

Step 7. Interpret results
What changed?
Why it changed?
Business impact.

Step 8. Give recommendations
Actionable steps.
Example: Increase ads in high margin regions.

Step 9. Validate and iterate
Cross-check numbers.
Ask stakeholder questions.

Step 10. Present clearly
One-page summary.
Simple language.
Focus on impact.

Sample project ideas
โ€ข Sales performance analysis.
โ€ข Customer churn analysis.
โ€ข Marketing campaign analysis.
โ€ข HR attrition dashboard.

Mini task
โ€ข Choose one project idea.
โ€ข Write the business question.
โ€ข List 3 metrics you will track.

Example: For Sales Performance Analysis

Business Question: Why did sales drop last quarter?

Metrics:
1. Revenue growth rate
2. Sales target achievement (%)
3. Customer acquisition cost (CAC)

Double Tap โ™ฅ๏ธ For More
โค3