Data Analytics
Perfect channel to learn Data Analytics Learn SQL, Python, Alteryx, Tableau, Power BI and many more For Promotions: @coderfun @love_data
نمایش بیشتر📈 تحلیل کانال تلگرام Data Analytics
کانال Data Analytics (@sqlspecialist) در بخش زبانی انگلیسی بازیگری فعال است. در حال حاضر جامعه شامل 110 979 مشترک است و جایگاه 1 062 را در دسته فناوری و برنامهها و رتبه 2 224 را در منطقه الهند دارد.
📊 شاخصهای مخاطب و پویایی
از زمان ایجاد در невідомо، پروژه رشد سریعی داشته و 110 979 مشترک جذب کرده است.
بر اساس آخرین دادهها در تاریخ 06 اکتبر, 2026، کانال فعالیت پایداری دارد. در ۳۰ روز گذشته تغییر اعضا برابر 150 و در ۲۴ ساعت گذشته برابر 3 بوده و همچنان دسترسی گستردهای حفظ شده است.
- وضعیت تأیید: تأیید نشده
- نرخ تعامل (ER): میانگین تعامل مخاطب 2.63% است و در ۲۴ ساعت نخست پس از انتشار، محتوا معمولاً 1.35% واکنش نسبت به کل مشترکان کسب میکند.
- دسترسی پستها: هر پست به طور میانگین 2 921 بازدید دریافت میکند. در اولین روز معمولاً 1 497 بازدید جمعآوری میشود.
- واکنشها و تعامل: مخاطبان بهطور فعال حمایت میکنند؛ میانگین واکنش به هر پست 5 است.
- علایق موضوعی: محتوا بر موضوعات کلیدی مانند row, sql, analytic, analyst, visualization تمرکز دارد.
📝 توضیح و سیاست محتوایی
نویسنده این فضا را محل بیان دیدگاههای شخصی توصیف میکند:
“Perfect channel to learn Data Analytics
Learn SQL, Python, Alteryx, Tableau, Power BI and many more
For Promotions: @coderfun @love_data”
به لطف بهروزرسانیهای پرتکرار (آخرین داده در تاریخ 07 اکتبر, 2026)، کانال همواره بهروز و دارای دسترسی بالاست. تحلیلها نشان میدهد مخاطبان بهطور فعال با محتوا تعامل دارند و آن را به نقطه اثرگذاری مهم در دسته فناوری و برنامهها تبدیل کردهاند.
=A2**B2
An absolute reference remains fixed when the formula is copied.
For example:
=A2**$B$1
Absolute references are particularly useful when applying a calculation using a fixed assumption, tax rate, exchange rate, or target value.”
🔟 How would you clean a large dataset in Excel?
Sample Answer:
“I would first understand the structure and identify data-quality issues.
My process would typically include:
• Removing or investigating duplicates
• Handling missing values
• Standardizing text and date formats
• Correcting inconsistent values
• Checking data types
• Identifying invalid or unusual values
• Using formulas or Power Query for repeatable transformations
• Validating the cleaned dataset before analysis
For a large or recurring dataset, I would prefer Power Query rather than manually cleaning the data every time.”
Double Tap ❤️ For Part-6=COUNT(A2:A100)
=COUNTA(A2:A100)
=COUNTIF(B2:B100,"Completed")
=COUNTIFS(B2:B100,"Completed",C2:C100,">1000")
4️⃣ What is the difference between SUMIF and SUMIFS?
Sample Answer:
“SUMIF is used when I have one condition, while SUMIFS is used when I need to apply multiple conditions.
For example, to calculate sales for the India region:
=SUMIF(A:A,"India",B:B)
To calculate sales for India where the product is Laptop:
=SUMIFS(C:C,A:A,"India",B:B,"Laptop")
5️⃣ How do you remove duplicate records in Excel?
Sample Answer:
“I first determine which columns should uniquely identify a record. Then I can use Excel's Remove Duplicates feature to identify and remove duplicate rows.
However, I would not immediately delete duplicates. I would first verify whether they are genuine duplicates or legitimate repeated transactions.”
6️⃣ How do you handle missing values in Excel?
Sample Answer:
“First, I identify how many values are missing and understand why they are missing.
Depending on the situation, I may replace them with an appropriate value, use a formula such as IF or IFERROR, flag them as ‘Unknown’, or exclude them if the business requirement allows it.
I would avoid blindly replacing missing values because that can affect the accuracy of the analysis.”
7️⃣ What is conditional formatting?
Sample Answer:
“Conditional formatting automatically changes the appearance of cells based on specified conditions.
For example, I can use it to highlight sales below target, overdue transactions, duplicate values, negative profit, or unusually high values.
It is useful for quickly identifying patterns and exceptions in a dataset.”
8️⃣ How would you identify the top 10 customers by sales in Excel?
Sample Answer:
“I could use a PivotTable to summarize total sales by customer, sort the values in descending order, and filter the result to the top 10 customers.WITH RankedEmployees AS (
SELECT Employee_ID,
Department,
Salary,
DENSE_RANK() OVER (
PARTITION BY Department
ORDER BY Salary DESC
) AS Salary_Rank
FROM Employees
)
SELECT Employee_ID, Department, Salary
FROM RankedEmployees
WHERE Salary_Rank = 1;
2️⃣ How do you find customers who have never placed an order?
Sample Answer:
"I would use a LEFT JOIN between the Customers and Orders tables and then filter for customers where no matching order exists."
SELECT c.Customer_ID,
c.Customer_Name
FROM Customers c
LEFT JOIN Orders o
ON c.Customer_ID = o.Customer_ID
WHERE o.Customer_ID IS NULL;
3️⃣ How do you find the total sales for each customer?
Sample Answer:
"I would group the sales data by Customer_ID and use SUM() to calculate the total sales."
SELECT Customer_ID,
SUM(Sales) AS Total_Sales
FROM Orders
GROUP BY Customer_ID;
4️⃣ How do you find the top 5 customers by sales?
Sample Answer:
"I would aggregate sales by customer, sort the result in descending order, and then return the top five customers."
SELECT Customer_ID,
SUM(Sales) AS Total_Sales
FROM Orders
GROUP BY Customer_ID
ORDER BY Total_Sales DESC
LIMIT 5;
"The exact syntax for limiting rows can vary depending on the database, such as TOP in SQL Server."
5️⃣ How do you calculate the average order value?
Sample Answer:
"Average Order Value can be calculated by dividing total sales by the number of orders. If each row represents one order, AVG() can also be used directly on the order amount."
SELECT AVG(Order_Amount) AS Average_Order_Value
FROM Orders;
6️⃣ How would you identify customers who placed more than 5 orders?
Sample Answer:
"I would group the orders by Customer_ID and use HAVING to filter customers whose order count is greater than five."
SELECT Customer_ID,
COUNT(**) AS Order_Count
FROM Orders
GROUP BY Customer_ID
HAVING COUNT(**) > 5;
7️⃣ How do you find records from the last 30 days?
Sample Answer:
"I would compare the date column with the current date and subtract 30 days. The exact syntax depends on the database."
For example:
SELECT **
FROM Orders
WHERE Order_Date >= CURRENT_DATE - INTERVAL '30' DAY;
8️⃣ How do you find the total sales by month?
Sample Answer:
"I would extract the month from the order date, group the data by month, and calculate the total sales."
SELECT
DATE_TRUNC('month', Order_Date) AS Month,
SUM(Sales) AS Total_Sales
FROM Orders
GROUP BY DATE_TRUNC('month', Order_Date)
ORDER BY Month;
9️⃣ How do you find employees whose salary is above their department's average salary?
Sample Answer:
"I would calculate the average salary for each department and compare each employee's salary with that department-level average. A CTE makes this easier to read."
WITH DepartmentAverage AS (
SELECT Department,
AVG(Salary) AS Avg_Salary
FROM Employees
GROUP BY Department
)
SELECT e.Employee_ID,
e.Department,
e.Salary
FROM Employees e
JOIN DepartmentAverage d
ON e.Department = d.Department
WHERE e.Salary > d.Avg_Salary;SELECT Month,
Sales,
LAG(Sales) OVER (ORDER BY Month) AS Previous_Sales,
(Sales - LAG(Sales) OVER (ORDER BY Month))
* 100.0 /
LAG(Sales) OVER (ORDER BY Month) AS MoM_Growth
FROM Monthly_Sales;
“I would also handle cases where the previous month's value is zero or NULL to avoid incorrect calculations.”
🔟 What is the difference between DELETE, TRUNCATE, and DROP?
Sample Answer:
“DELETE removes selected rows from a table and can be used with a WHERE condition.
TRUNCATE removes all rows from a table while keeping the table structure.
DROP removes the entire table, including its structure and data.
So, the key difference is whether I'm removing specific records, all records, or the entire table itself.”
📌 Double Tap ❤️ For Part-4
-----
1.28 ₽ · /balance_helpSELECT Employee_ID, Salary
FROM Employees
WHERE Salary > (
SELECT AVG(Salary)
FROM Employees
);
2️⃣ What is a CTE?
Sample Answer:
“CTE stands for Common Table Expression. It allows us to define a temporary named result set using the WITH clause, which can then be referenced within the main query.
CTEs make complex queries easier to read, maintain, and debug.”
WITH CustomerSales AS (
SELECT Customer_ID,
SUM(Sales) AS Total_Sales
FROM Sales
GROUP BY Customer_ID
)
SELECT *
FROM CustomerSales
WHERE Total_Sales > 100000;
3️⃣ What is a window function?
Sample Answer:
“A window function performs a calculation across a set of related rows while still retaining the individual rows in the result.
Unlike GROUP BY, it does not collapse multiple rows into a single row.
Common window functions include ROW_NUMBER(), RANK(), DENSE_RANK(), LAG(), and LEAD().”
4️⃣ What is the difference between RANK(), DENSE_RANK(), and ROW_NUMBER()?
Sample Answer:
“ROW_NUMBER() assigns a unique sequential number to every row.
RANK() assigns the same rank to tied values but leaves gaps after a tie.
DENSE_RANK() also assigns the same rank to tied values but does not leave gaps.”
Example:
Values: 100, 100, 90
ROW_NUMBER: 1, 2, 3
RANK: 1, 1, 3
DENSE_RANK: 1, 1, 2
5️⃣ How would you find the second-highest salary?
Sample Answer:
“One approach is to use DENSE_RANK(). This also handles duplicate salaries correctly.”
WITH RankedEmployees AS (
SELECT Employee_ID,
Salary,
DENSE_RANK() OVER (ORDER BY Salary DESC) AS Salary_Rank
FROM Employees
)
SELECT Employee_ID, Salary
FROM RankedEmployees
WHERE Salary_Rank = 2;
6️⃣ How would you find the top 3 salaries in each department?
Sample Answer:
“I would use a window function to rank employees within each department.”
WITH RankedEmployees AS (
SELECT Employee_ID,
Department,
Salary,
DENSE_RANK() OVER (
PARTITION BY Department
ORDER BY Salary DESC
) AS Salary_Rank
FROM Employees
)
SELECT *
FROM RankedEmployees
WHERE Salary_Rank <= 3;
“The PARTITION BY ensures that ranking starts separately for each department.”
7️⃣ What is PARTITION BY in SQL?
Sample Answer:
“PARTITION BY divides the result set into groups for a window function without collapsing the rows.
For example, if I want to rank employees separately within each department, I can use PARTITION BY Department.”
SELECT Employee_ID,
Department,
Salary,
RANK() OVER (
PARTITION BY Department
ORDER BY Salary DESC
) AS Salary_Rank
FROM Employees;
8️⃣ What are LAG() and LEAD() functions?
Sample Answer:
“LAG() allows me to access a value from a previous row, while LEAD() allows me to access a value from a following row.
They are particularly useful for comparing current values with previous or future values, such as month-over-month sales.”
SELECT Month,
Sales,
LAG(Sales) OVER (ORDER BY Month) AS Previous_Month_Sales
FROM Monthly_Sales;SELECT Customer_ID, COUNT(*) AS Count_Records
FROM Customers
GROUP BY Customer_ID
HAVING COUNT(*) > 1;
"This identifies Customer_ID values that appear more than once. I would then investigate whether those records are genuine duplicates before taking any corrective action."
📌 Double Tap ❤️ For Part-3
-----
1.38 ₽ · /balance_helpSELECT Customer_ID, SUM(Sales) AS Total_Sales
FROM Sales
GROUP BY Customer_ID
HAVING SUM(Sales) > 100000;
3️⃣ What is the difference between INNER JOIN and LEFT JOIN?
Sample Answer:
"An INNER JOIN returns only the records that have matching values in both tables.
A LEFT JOIN returns all records from the left table and the matching records from the right table. If there is no match, the columns from the right table contain NULL."
For example, if I want all customers, including customers who haven't placed any orders, I would use a LEFT JOIN.
4️⃣ What is a primary key?
Sample Answer:
"A primary key is a column or combination of columns that uniquely identifies each record in a table. It must contain unique values and cannot contain NULL values.
For example, Customer_ID can be a primary key in a Customer table if every customer has a unique ID."
5️⃣ What is a foreign key?
Sample Answer:
"A foreign key is a column that references a primary key or another unique key in another table. It establishes a relationship between tables.
For example, Customer_ID in an Orders table can reference Customer_ID in the Customers table."
6️⃣ What is the difference between UNION and UNION ALL?
Sample Answer:
"Both are used to combine the results of two or more SELECT statements.
UNION removes duplicate records from the combined result, while UNION ALL retains duplicates.
Because UNION performs duplicate elimination, UNION ALL can generally be faster when duplicate removal isn't required."
7️⃣ What is a NULL value in SQL?
Sample Answer:
"NULL represents a missing, unknown, or unavailable value. It is different from zero, an empty string, or a blank value.
We should use IS NULL or IS NOT NULL to check for NULL values rather than using an equals operator."
SELECT *
FROM Customers
WHERE Email IS NULL;
8️⃣ What is GROUP BY used for?
Sample Answer:
"GROUP BY is used to group rows that have the same values in one or more columns so that aggregate functions can be applied to each group.
For example, to calculate total sales by region:"
SELECT Region, SUM(Sales) AS Total_Sales
FROM Sales
GROUP BY Region;
9️⃣ What are aggregate functions in SQL?
Sample Answer:
"Aggregate functions perform calculations on multiple rows and return a single result for each group.
Common aggregate functions include:"
• COUNT() — counts records
• SUM() — calculates the total
• AVG() — calculates the average
• MIN() — finds the minimum value
• MAX() — finds the maximum value
For example:
SELECT
COUNT(*) AS Total_Orders,
SUM(Sales) AS Total_Sales,
AVG(Sales) AS Average_Sales
FROM Sales;SELECT Customer_ID, Transaction_ID, COUNT(**) AS duplicate_count
FROM transactions
GROUP BY Customer_ID, Transaction_ID
HAVING COUNT(**) > 1;SELECT Customer_ID, Transaction_ID, COUNT(**) AS duplicate_count
FROM transactions
GROUP BY Customer_ID, Transaction_ID
HAVING COUNT(**) > 1;