Sachintukumar Profile Banner
Sachin Kumar Profile
Sachin Kumar

@Sachintukumar

Followers
10K
Following
40K
Media
1K
Statuses
12K

Data Analyst || SQL || PowerBI || Excel || Python || Statistics || Ex-UPSC Aspirant || 📩 for Collaboration

Ghaziabad
Joined February 2018
Don't wanna be here? Send us removal request.
@Sachintukumar
Sachin Kumar
2 months
Guys please help me I’m Sachin Kumar — Seeking Data Analyst / Product Analyst/ Business Analyst Roles! ✅ 2+ years in SQL, Python, Power BI & Excel ✅ BI reporting, product analytics & automation experience ✅ Skilled in EDA, A/B testing, KPI tracking & data storytelling
3
19
51
@Sachintukumar
Sachin Kumar
22 days
Ever wondered how to alternate Male-Female rows in SQL? This clever trick is perfect for @Deloitte , Accenture, or any data-heavy interview! Day 57 of SQL Revision A Complete thread
1
1
6
@Sachintukumar
Sachin Kumar
2 years
SQL Notes for Beginners ⚡️ ✅Proficiency in #SQL is a valuable skill for #database administrators, developers, analysts, & anyone working with structured data {Day (41-45)} 🧵👇
7
36
221
@Sachintukumar
Sachin Kumar
22 days
@Sachintukumar
Sachin Kumar
29 days
Day 55 of SQL Revision Series From timestamps to productivity insights: How to calculate daily work hours for multiple employees using #SQL A Complete 🧵
0
0
0
@Sachintukumar
Sachin Kumar
22 days
Step 2: Assign alternating positions Male → rn * 2 - 1 → odd positions (1, 3, 5 …) Female → rn * 2 → even positions (2, 4, 6 …) This ensures that when we sort by sort_order, rows alternate: Male → Female → Male → Female Step 3: Final output #SQLTips #DataAnalytics
1
0
0
@Sachintukumar
Sachin Kumar
22 days
◾ Explanation: Step 1: Split employees by gender & assign row numbers ROW_NUMBER() OVER (ORDER BY id) assigns a sequential number to each employee within their gender
1
0
0
@Sachintukumar
Sachin Kumar
22 days
), pp AS ( SELECT id, EmpName, Gender, rn * 2 - 1 AS sort_order FROM Male UNION ALL SELECT id, EmpName, Gender, rn * 2 AS sort_order FROM Female ) SELECT id, EmpName, Gender FROM pp ORDER BY sort_order;
1
0
0
@Sachintukumar
Sachin Kumar
22 days
◾ Using Row_Number Approach Query: WITH Male AS ( SELECT id, EmpName, Gender, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM Employee WHERE Gender = 'MALE' ), Female AS ( SELECT id, EmpName, Gender, ROW_NUMBER() OVER (ORDER BY id) AS rn FROM Employee WHERE Gender = 'FEMALE'
1
0
0
@Sachintukumar
Sachin Kumar
22 days
Ever wondered how to alternate Male-Female rows in SQL? This clever trick is perfect for @Deloitte , Accenture, or any data-heavy interview! Day 57 of SQL Revision A Complete thread
1
1
6
@Sachintukumar
Sachin Kumar
22 days
Even the greatest go through tough phases But champions aren’t defined by their failures — they’re defined by how they bounce back. 💪 A Lesson from Virat Kohli Sir! 1st Match vs AUS – 0 2nd Match vs AUS – 0 3rd Match vs AUS (today) – Finally, a solid 50+* #Kohli #ViratKohli
0
0
1
@Sachintukumar
Sachin Kumar
29 days
@Sachintukumar
Sachin Kumar
1 month
📗Day 53 of SQL Series Sandwich Pattern Problem in SQL Ever noticed a weird pattern in your data — something disappears, changes, and comes back again? That’s what I call the Sandwich Pattern — same value at start and end, but something else in between. A Complete 🧵
0
0
0
@Sachintukumar
Sachin Kumar
29 days
4️⃣ Aggregating Daily Hours Using SUM() and GROUP BY, we get total working hours for each employee per day. This method works for multiple login-logout pairs per day, automatically summing all sessions to calculate the total working hours accurately.
1
0
0
@Sachintukumar
Sachin Kumar
29 days
3️⃣ Calculating Duration in Hours EXTRACT(EPOCH FROM (logout_time - login_time)) / 3600 converts the time difference from seconds to hours. #SQLTips #DataAnalytics #WorkHoursTracking #EmployeeInsights #ProductivityAnalytics
1
0
0
@Sachintukumar
Sachin Kumar
29 days
Partitioning by employee_id and day ensures we calculate durations per employee per day. 2️⃣ Filtering for Logins We only need login events to calculate the duration until the next event (usually logout).
1
0
0
@Sachintukumar
Sachin Kumar
29 days
As a analyst, one common task is to calculating daily working hours for employees using event logs. How it works: 1️⃣ Pairing Login and Logout Events We use a CTE (WITH paired) with LEAD() function to get the next event time for each login
1
0
0
@Sachintukumar
Sachin Kumar
29 days
Day 55 of SQL Revision Series From timestamps to productivity insights: How to calculate daily work hours for multiple employees using #SQL A Complete 🧵
1
0
1
@Sachintukumar
Sachin Kumar
1 month
📗Day 53 of SQL Series Sandwich Pattern Problem in SQL Ever noticed a weird pattern in your data — something disappears, changes, and comes back again? That’s what I call the Sandwich Pattern — same value at start and end, but something else in between. A Complete 🧵
1
1
4
@Sachintukumar
Sachin Kumar
1 month
@Sachintukumar
Sachin Kumar
1 month
📗Day 52 of SQL Series When an interviewer asks “How would you clean messy data in #SQL ?” many candidates jump straight to functions: TRIM(), COALESCE(), CAST()… That’s fine — but process matters more than memorized functions. Use this simple, repeatable framework (and say it
0
0
0
@Sachintukumar
Sachin Kumar
1 month
✅ Why It Matters: This pattern logic helps detect: - users who drop off & return - systems that fail → recover → fail again - inventory cycles & repeated events SQL isn’t just about aggregates — it’s a way to find stories in data.
1
0
0
@Sachintukumar
Sachin Kumar
1 month
☑️ SQL Query: SELECT DISTINCT a.NUMB AS sandwich_value FROM NUM a JOIN NUM b ON https://t.co/U8NYYlew0G = https://t.co/Mqwpiag1hp + 1 JOIN NUM c ON https://t.co/ljGWPns5bg = https://t.co/Mqwpiag1hp + 2 WHERE a.NUMB = c.NUMB AND a.NUMB <> b.NUMB; ✅ Output → 4 and 9
1
0
0
@Sachintukumar
Sachin Kumar
1 month
✅Problem Statement: We need to find values forming a pattern x, y, x — same outer values, different middle. ☑️ The Logic Think in triples: (i, i+1, i+2) If a.NUMB = c.NUMB and a.NUMB <> b.NUMB, you’ve found your “sandwich”
1
0
0