Data Analytics
Perfect channel to learn Data Analytics Learn SQL, Python, Alteryx, Tableau, Power BI and many more For Promotions: @coderfun @love_data
Ko'proq ko'rsatish📈 Telegram kanali Data Analytics analitikasi
Data Analytics (@sqlspecialist) Ingliz til segmentidagi kanali faol ishtirokchi. Hozirda hamjamiyat 110 577 obunachidan iborat bo'lib, Texnologiyalar & Aralashmalar toifasida 1 081-o'rinni va Hindiston mintaqasida 2 311-o'rinni egallagan.
📊 Auditoriya ko‘rsatkichlari va dinamika
невідомо sanasidan buyon loyiha tez o‘sib, 110 577 obunachiga ega bo‘ldi.
31 Iyul, 2026 dagi oxirgi ma’lumotlarga ko‘ra kanal barqaror faollikka ega. Oxirgi 30 kunda obunachilar soni 727 ga, so‘nggi 24 soatda esa 24 ga o‘zgardi va umumiy qamrov yuqori darajada qolmoqda.
- Tasdiqlash holati: Tasdiqlanmagan
- Jalb etish (ER): Auditoriya o‘rtacha 3.92% darajada jalb etiladi. Nashrdan keyingi dastlabki 24 soatda kontent odatda umumiy obunachilar sonining 1.54% ini tashkil etuvchi reaksiyalarni to‘playdi.
- Post qamrovi: Har bir post o‘rtacha 4 334 marta ko‘riladi; birinchi sutkada odatda 1 703 ta ko‘rish yig‘iladi.
- Reaksiyalar va o‘zaro ta’sir: Auditoriya faol: har bir postga o‘rtacha 9 ta reaksiya keladi.
- Tematik yo‘nalishlar: Kontent row, sql, analytic, analyst, visualization kabi asosiy mavzularga jamlangan.
📝 Tavsif va kontent siyosati
Muallif resursni shaxsiy fikrni ifoda etish maydoni sifatida ta’riflaydi:
“Perfect channel to learn Data Analytics
Learn SQL, Python, Alteryx, Tableau, Power BI and many more
For Promotions: @coderfun @love_data”
Yuqori yangilanish chastotasi (oxirgi ma’lumot 01 Avgust, 2026 da olingan) sababli kanal doimo dolzarb va katta qamrovli bo‘lib qoladi. Analitika auditoriya kontent bilan faol hamkorlik qilishini, uni Texnologiyalar & Aralashmalar toifasidagi muhim ta’sir nuqtasiga aylantirishini ko‘rsatadi.
CREATE INDEX idx_customer_name ON customers (customer_name);
📌 Create a Composite Index
CREATE INDEX idx_order ON orders (customer_id, order_date);
📌 Drop an Index
DROP INDEX idx_customer_name;
4. When to Use Indexes?
✔ Use indexes on frequently searched columns.
✔ Use indexes on JOIN and WHERE clause columns.
✔ Avoid indexing small tables (full table scans are faster).
✔ Avoid too many indexes (they slow down INSERT, UPDATE, DELETE).
✅ Action Plan for Today:
1️⃣ Identify queries in your database that could benefit from an index.
2️⃣ Create a non-clustered index on a table and check the performance.
3️⃣ Drop unnecessary indexes and observe the difference.
🔝 SQL 30 Days Challenge
Here you can find SQL Interview Resources👇
https://t.me/sqlanalyst
Like this post if you want me to continue this SQL series 👍♥️
Share with credits: https://t.me/sqlspecialist
Hope it helps :)-- WHERE filters before aggregation SELECT * FROM Sales WHERE Region = 'North'; -- HAVING filters after aggregation SELECT Region, SUM(Sales) AS TotalSales FROM Sales GROUP BY Region HAVING SUM(Sales) > 50000;
7. What are the different types of filters in Power BI?
Answer:
Power BI provides different types of filters for refining data:
Visual-level filters – Apply to a single visual.
Page-level filters – Apply to all visuals on a report page.
Report-level filters – Apply to the entire report.
Drillthrough filters – Allow users to focus on specific data in another page.
Top N filters – Show only the top N records based on a measure.
Example: In Power BI Desktop, you can apply filters using the Filters Pane.
8. How do you remove duplicate values in Excel?
Answer:
You can remove duplicates in Excel using:
Remove Duplicates feature:
Select your data.
Go to Data → Remove Duplicates and choose columns to check for duplicates.
Using a formula (COUNTIF method): =IF(COUNTIF(A:A, A2)>1, "Duplicate", "Unique")
Using Power Query:
Load data into Power Query Editor → Remove Duplicates option.
9. What is the difference between a Bar Chart and a Histogram?
Answer:
Bar Chart represents categorical data with discrete bars.
Histogram represents continuous data and shows frequency distribution.
Example:
A Bar Chart can show sales by product category.
A Histogram can show age distribution in a population dataset.
10. How do you handle missing values in Python using Pandas?
Answer:
You can handle missing values using:
Drop missing values:
df.dropna() # Removes rows with missing values
Fill missing values:
df.fillna(0) # Replaces NaN with 0
Fill with column mean/median/mode:
df['Column'].fillna(df['Column'].mean(), inplace=True)
Interpolate missing values:
df.interpolate(method='linear')
I have curated best 80+ top-notch Data Analytics Resources 👇👇
https://t.me/DataSimplifier
Like this post for if you want me to continue the interview series 👍♥️
Share with credits: https://t.me/sqlspecialist
Hope it helps :)CREATE TABLE Customers ( CustomerID INT PRIMARY KEY, Name VARCHAR(50) ); CREATE TABLE Orders ( OrderID INT PRIMARY KEY, CustomerID INT, FOREIGN KEY (CustomerID) REFERENCES Customers(CustomerID) );
2. What are the different types of JOINs in SQL?
Answer:
SQL supports different types of JOINs to combine data from multiple tables:
INNER JOIN: Returns only matching records in both tables.
LEFT JOIN: Returns all records from the left table and matching records from the right table.
RIGHT JOIN: Returns all records from the right table and matching records from the left table.
FULL OUTER JOIN: Returns all records from both tables, with NULLs where there is no match.
SELF JOIN: A table is joined with itself.
CROSS JOIN: Produces a Cartesian product of both tables.
Example:
SELECT Customers.Name, Orders.OrderID FROM Customers INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID;
3. What are Pivot Tables in Excel, and why are they used?
Answer:
A Pivot Table in Excel allows users to summarize, analyze, explore, and present data dynamically. It helps in:
Summarizing large datasets quickly.
Performing calculations like sum, count, average, etc.
Creating reports without using complex formulas.
Example Use Case:
If you have sales data with columns for region, product, and revenue, a pivot table can show total revenue by region and product category.
Steps to create a Pivot Table:
Select your dataset.
Go to Insert → Pivot Table.
Choose where to place the Pivot Table.
Drag fields into Rows, Columns, Values, and Filters.
4. Explain the difference between COUNT(), COUNT(*), and COUNT(column_name) in SQL.
Answer:
COUNT(): Returns the number of rows where a column is NOT NULL.
COUNT(*): Returns the total number of rows in a table, including NULL values.
COUNT(column_name): Counts non-NULL values in a specific column.
Example:
SELECT COUNT(*) FROM Orders; -- Counts all rows SELECT COUNT(CustomerID) FROM Orders; -- Counts only non-NULL CustomerIDs
5. How do you handle missing values in Python using Pandas?
Answer:
Missing values can be handled using Pandas functions:
Drop missing values: df.dropna()
Fill missing values: df.fillna(value)
Replace missing values: df.replace(to_replace, value)
Check for missing values: df.isnull().sum()
Example:
import pandas as pd df = pd.DataFrame({'A': [1, 2, None, 4], 'B': [None, 2, 3, 4]}) df.fillna(0, inplace=True) # Replace NaN with 0
I have curated best 80+ top-notch Data Analytics Resources 👇👇
https://topmate.io/analyst/861634
Like this post for more content like this ♥️
Share with credits: https://t.me/sqlspecialist
Hope it helps :)SELECT MAX(Salary) AS SecondHighestSalary FROM Employees WHERE Salary < (SELECT MAX(Salary) FROM Employees);
2️⃣ Challenge: Get Consecutive Login Streaks
Given a Logins table with UserID and LoginDate, find users who logged in for three consecutive days.
SELECT DISTINCT L1.UserID FROM Logins L1 JOIN Logins L2 ON L1.UserID = L2.UserID AND L1.LoginDate = L2.LoginDate - 1 JOIN Logins L3 ON L1.UserID = L3.UserID AND L1.LoginDate = L3.LoginDate - 2;
3️⃣ Challenge: Rank Employees by Salary Within Each Department
SELECT EmployeeID, Name, Department, Salary, RANK() OVER (PARTITION BY Department ORDER BY Salary DESC) AS SalaryRank FROM Employees;
✅ Action Plan for Today
Review Week 3 Topics – Revisit notes, practice stored procedures, and triggers.
Solve These Complex Challenges – Try modifying them for different cases.
Ask Yourself:
What happens if two employees have the same second-highest salary?
How would you handle ties in ranking employees?
Can you optimize these queries for better performance?
🔝 SQL 30 Days Challenge
Here you can find SQL Interview Resources👇
https://topmate.io/analyst/864764
Like this post if you want me to continue this SQL series 👍♥️
Share with credits: https://t.me/sqlspecialist
Hope it helps :)CREATE TRIGGER trg_AfterInsert ON Employees AFTER INSERT AS BEGIN PRINT 'A new employee record has been inserted!'; END;
Test the trigger:
INSERT INTO Employees (EmployeeID, Name, Department) VALUES (101, 'John Doe', 'IT');
After execution, the message "A new employee record has been inserted!" appears.
4. INSTEAD OF Trigger Example
Prevents deleting employees from the Employees table but logs the request.
CREATE TRIGGER trg_InsteadOfDelete ON Employees INSTEAD OF DELETE AS BEGIN PRINT 'Delete operation blocked. Logging attempt...'; INSERT INTO DeleteLogs (EmployeeID, DeleteTime) SELECT EmployeeID, GETDATE() FROM deleted; END;
Test the trigger:
DELETE FROM Employees WHERE EmployeeID = 101;
Instead of deleting, it logs the deletion attempt.
5. Viewing & Dropping Triggers
List triggers on a table:
SELECT name FROM sys.triggers WHERE parent_id = OBJECT_ID('Employees');
Drop a trigger:
DROP TRIGGER trg_AfterInsert;
6. Best Practices for Triggers:
✅ Keep triggers lightweight to avoid performance issues.
✅ Use triggers only when necessary (consider stored procedures for flexibility).
✅ Avoid recursive triggers (where a trigger fires another trigger).
✅ Log actions to track unwanted modifications.
Action Steps:
Create an AFTER INSERT trigger to log new entries into an audit table.
Create an INSTEAD OF UPDATE trigger to prevent salary updates above a certain limit.
Experiment with retrieving deleted records using the deleted table inside a trigger.
🔝 SQL 30 Days Challenge
Here you can find SQL Interview Resources👇
https://topmate.io/analyst/864764
Like this post if you want me to continue this SQL series 👍♥️
Share with credits: https://t.me/sqlspecialist
Hope it helps :)CREATE TRIGGER trg_AfterInsert ON Employees AFTER INSERT AS BEGIN PRINT 'A new employee record has been inserted!'; END;
Test the trigger:
INSERT INTO Employees (EmployeeID, Name, Department) VALUES (101, 'John Doe', 'IT');
After execution, the message "A new employee record has been inserted!" appears.
4. INSTEAD OF Trigger Example
Prevents deleting employees from the Employees table but logs the request.
CREATE TRIGGER trg_InsteadOfDelete ON Employees INSTEAD OF DELETE AS BEGIN PRINT 'Delete operation blocked. Logging attempt...'; INSERT INTO DeleteLogs (EmployeeID, DeleteTime) SELECT EmployeeID, GETDATE() FROM deleted; END;
Test the trigger:
DELETE FROM Employees WHERE EmployeeID = 101;
Instead of deleting, it logs the deletion attempt.
5. Viewing & Dropping Triggers
List triggers on a table:
SELECT name FROM sys.triggers WHERE parent_id = OBJECT_ID('Employees');
Drop a trigger:
DROP TRIGGER trg_AfterInsert;
6. Best Practices for Triggers:
✅ Keep triggers lightweight to avoid performance issues.
✅ Use triggers only when necessary (consider stored procedures for flexibility).
✅ Avoid recursive triggers (where a trigger fires another trigger).
✅ Log actions to track unwanted modifications.
Action Steps:
Create an AFTER INSERT trigger to log new entries into an audit table.
Create an INSTEAD OF UPDATE trigger to prevent salary updates above a certain limit.
Experiment with retrieving deleted records using the deleted table inside a trigger.
🔝 SQL 30 Days Challenge
Here you can find SQL Interview Resources👇
https://topmate.io/analyst/864764
Like this post if you want me to continue this SQL series 👍♥️
Share with credits: https://t.me/sqlspecialist
Hope it helps :)CREATE PROCEDURE ProcedureName AS BEGIN -- SQL statements END;
Example:
A procedure to fetch all employees:
CREATE PROCEDURE GetAllEmployees AS BEGIN SELECT * FROM Employees; END;
Execute the procedure:
EXEC GetAllEmployees;
4. Stored Procedures with Parameters
Stored procedures can take input and output parameters.
Example:
Procedure to fetch employees based on department ID:
CREATE PROCEDURE GetEmployeesByDept @DeptID INT AS BEGIN SELECT * FROM Employees WHERE DepartmentID = @DeptID; END;
Execute with a parameter:
EXEC GetEmployeesByDept @DeptID = 2;
5. Stored Procedure with Output Parameters
Used to return values from a procedure.
Example:
A procedure to count employees in a department:
CREATE PROCEDURE GetEmployeeCountByDept @DeptID INT, @EmpCount INT OUTPUT AS BEGIN SELECT @EmpCount = COUNT(*) FROM Employees WHERE DepartmentID = @DeptID; END;
Call the procedure and get the output value:
DECLARE @Count INT; EXEC GetEmployeeCountByDept @DeptID = 2, @EmpCount = @Count OUTPUT; PRINT @Count;
6. Modifying and Dropping a Stored Procedure
Modify an existing procedure:
ALTER PROCEDURE ProcedureName AS BEGIN
-- Updated SQL statements END;
Drop a stored procedure:
DROP PROCEDURE ProcedureName;
7. Best Practices for Stored Procedures
Use meaningful names for easy identification.
Avoid SELECT ; instead, specify required columns.
Use parameters instead of hardcoded values.
Handle errors using TRY...CATCH.
Action Steps:
Create a stored procedure to insert a new employee into the Employees table.
Write a procedure with an input parameter for filtering records.
Experiment with an output parameter to return calculated values.
🔝 SQL 30 Days Challenge
Here you can find SQL Interview Resources👇
https://t.me/sqlanalyst
Like this post if you want me to continue this SQL series 👍♥️
Share with credits: https://t.me/sqlspecialist
Hope it helps :)