Coder Baba
Ir al canal en Telegram
Everything about programming for beginners. 1 and only official telegram channel of CODERBABA India. Content: .NET Developer, Programming (ASP. NET, VB. NET, C#, SQL Server), & Projects follow me https://linktr.ee/coderbaba *Programming *Coding *Note
Mostrar más2 319
Suscriptores
-124 horas
-167 días
-2630 días
Archivo de publicaciones
2 319
📊💻 Ace Your SQL Interview! 💼✨
🚀 Just uploaded a must-watch video on YouTube:
"SQL Interview Question: Calculate Cumulative Sum of Sales for Employees"
🔍 Learn step-by-step how to calculate the cumulative sum of sales for each employee. This tutorial is perfect for:
✅ SQL beginners
✅ Job seekers preparing for technical interviews
✅ Anyone looking to enhance their database skills
🎥 Watch the video now: https://youtu.be/baWTD9S0dpY
💡 Make your SQL skills stand out in interviews and secure your dream job!
💬 Let me know your thoughts in the comments, and don’t forget to like, share, and subscribe for more awesome content! 🚀
#SQLInterviewQuestions #SQLQuery #SQLTutorial #CumulativeSum #SQLJobs #LearnSQL #SQLForBeginners #InterviewPrep #CodingTutorial #DatabaseManagement
👉 Follow for more learning resources! 🌟
2 319
🚀 Master SQL for Interviews! 📊
💡 SQL Challenge: Ready to test your skills? Here’s a commonly asked SQL Interview Question that you must know to ace your next job interview! 👇
🔥 Question:
Write a SQL query to calculate the cumulative sum of sales for each employee. The result should include:
👉 EmployeeID
👉 SaleDate
👉 CumulativeSales
--SQL Code to Create the Table:
CREATE TABLE Sales (
EmployeeID INT,
SaleDate DATE,
SaleAmount DECIMAL(10, 2)
);
--Insert Sample Data into the Table
INSERT INTO Sales (EmployeeID, SaleDate, SaleAmount) VALUES
(1, '2024-01-01', 100.00), -- Employee 1 made a sale of 100 on Jan 1
(1, '2024-01-02', 150.00), -- Employee 1 made another sale on Jan 2
(1, '2024-01-03', 200.00), -- Employee 1 made another sale on Jan 3
(2, '2024-01-01', 120.00), -- Employee 2 made a sale on Jan 1
(2, '2024-01-02', 180.00), -- Employee 2 made another sale on Jan 2
(3, '2024-01-01', 200.00), -- Employee 3 made a sale on Jan 1
(3, '2024-01-03', 100.00), -- Employee 3 made a sale on Jan 3
(3, '2024-01-04', 50.00); -- Employee 3 made another sale on Jan 4
✨ Here’s the SQL Query Solution:
WITH CumulativeSales AS (
SELECT
EmployeeID,
SaleDate,
SaleAmount,
(SELECT SUM(SaleAmount)
FROM Sales AS S2
WHERE S2.EmployeeID = S1.EmployeeID
AND S2.SaleDate <= S1.SaleDate) AS CumulativeSales
FROM Sales S1
)
SELECT
EmployeeID,
SaleDate,
SaleAmount,
CumulativeSales
FROM CumulativeSales
ORDER BY EmployeeID, SaleDate;
📌 For a detailed explanation and additional learning, watch my YouTube video: 🎥
https://youtu.be/baWTD9S0dpY
👉 Follow for More Insights: @coder_baba
📌 Don't forget to share this post with others preparing for technical interviews!
#SQLInterviewQuestions #DatabaseSkills #SQLServer #LearnSQL #InterviewPreparation #CumulativeSum #CodingTips #coderbaba
2 319
🚀 Join Us on Facebook! 🌟
Hey there, amazing people! 🙌
I’ve just launched my Facebook page dedicated to bringing you awesome content, including funny reactions, daily vlogs, and much more! 🎥💥 If you love a good laugh and exciting reactions, come join the Stardust React community! 😎
Click here to follow and be a part of the fun:
👉 https://www.facebook.com/coderbaba
2 319
essential sql interview questions
1 Explain Order of Execution of SQL query
2 Provide a use case for each of the functions Rank, Dense_Rank & Row_Number
3 Write a query to find the cumulative sum/Running Total
4 Find the Most selling product by sales/ highest Salary of employees
5 Write a query to find the 2nd/nth highest Salary of employees
6 Difference between union vs union all
7 Identify if there any duplicates in a table
8 Scenario based Joins question, understanding of Inner, Left and Outer Joins via simple yet tricky question
9 LAG, write a query to find all those records where the transaction value is greater then previous transaction value
10 Rank vs Dense Rank, query to find the 2nd highest Salary of employee ( Ideal soln should handle ties)
11 Write a query to find the Running Difference (Ideal sol'n using windows function)
12 Write a query to display year on year/month on month growth
13 Write a query to find rolling average of daily sign-ups
14 Write a query to find the running difference using self join (helps in understanding the logical approach, ideally this question is solved via windows function)
15Write a query to find the cumulative sum using self join
(helps in understanding the logical approach, ideally this question is solved via windows function
#coderbaba #SQLTips
follow @coder_baba
2 319
Master Expense Management System in C# | One-Shot Full Tutorial
https://youtu.be/lX9MLcnjpgE
2 319
Master Expense Management System in C# | One-Shot Full Tutorial + Free Code For Members Only👆
2 319
💰 Master Expense Management System in VB.NET & SQL Server 📊 | Full Tutorial
https://youtu.be/odGyzCKo7E0
#ExpenseManagement
#VBNet
#SQLServer
#ExpenseTracker
#DatabaseApp
#FinanceApp
#DesktopApplication
#BudgetingApp
#LearnVBNet
#ProgrammingTutorial
#VisualBasicNet
#SQLDatabase
#CodingMadeEasy
#FinanceTracker
#CRUDOperations
#DeveloperCommunity
#DatabaseDevelopment
#AppDevelopment
#SQLIntegration
#SoftwareProjects
2 319
💻 Linux Commands Cheat Sheet 💻
📂 ls: List files and directories in the current directory.
Example: ls
📁 cd: Change directory.
Example: cd /path/to/directory
📌 pwd: Show the current directory.
Example: pwd
📂 mkdir: Create a new directory.
Example: mkdir new_directory
🗑 rm: Remove files and directories.
Example: rm file.txt
📄 cp: Copy files and directories.
Example: cp file.txt /path/to/destination
✏️ mv: Move or rename files and directories.
Example: mv file.txt /path/to/destination
📝 touch: Create an empty file.
Example: touch file.txt
👀 cat: Display the contents of a file.
Example: cat file.txt
🔍 grep: Search for a pattern in a file.
Example: grep "pattern" file.txt
🔝 head: Display the first few lines of a file.
Example: head file.txt
🔚 tail: Display the last few lines of a file.
Example: tail file.txt
🔒 chmod: Change file permissions.
Example: chmod 755 file.txt
👤 chown: Change file ownership.
Example: chown user:group file.txt
🔗 ln: Create a symbolic link.
Example: ln -s /path/to/file link
🔍 find: Search for files and directories.
Example: find /path/to/search -name "pattern"
📦 tar: Archive files and directories.
Example: tar -czvf archive.tar.gz files/
📂 unzip: Extract files from a zip archive.
Example: unzip archive.zip
📜 man: Access command manuals.
Example: man ls
📜 history: View command history.
Example: history
⚙️ ps: Show running processes.
Example: ps aux
❌ kill: Terminate a process.
Example: kill PID
💾 df: Show disk space usage.
Example: df -h
📏 du: Check directory sizes.
Example: du -sh directory
🔐 scp: Securely copy files between hosts.
Example: scp file.txt user@remote:/path/to/destination
🔑 ssh: Connect to a remote host securely.
Example: ssh user@host
🌐 ping: Test network connectivity.
Example: ping google.com
🖧 ifconfig: Display network interface info.
Example: ifconfig
🌐 wget: Download files from the web.
Example: wget https://example.com/file.txt
🌐 curl: Transfer data to/from a server.
Example: curl https://example.com
Follow @coder_baba
#coderbaba #CoderBaba #linux
2 319
📄 Linux Commands Interview Q&A
🔍 1. What is Linux?
🐧 Linux is an open-source operating system kernel forming the base for various distributions.
🔧 2. Main components of a Linux system?
Kernel, shell, and file system.
💻 3. Role of the Linux Kernel?
Manages system resources and provides services to applications.
🖥 4. What is a shell?
Command-line interpreter for interacting with the OS.
🎉 5. Popular Linux distributions?
Ubuntu, Debian, Fedora, CentOS, and Red Hat Enterprise Linux.
🛡 6. Changing file permissions?
Use chmod (e.g., chmod 755 filename) to set permissions.
🔎 7. Purpose of the "grep" command?
Searches for specific patterns within files.
📁 8. Finding files?
Use find command based on criteria like name, size, and permissions.
📊 9. What is the "top" command for?
Monitors system processes and resource usage in real-time.
💾 10. Checking disk usage?
df command shows disk space usage of file systems.
🔗 11. What is a symbolic link?
A soft link pointing to another file or directory.
📦 12. Purpose of the "tar" command?
Creates and manipulates archive files.
⚙️ 13. Starting and stopping services?
Use systemctl (e.g., systemctl start service_name) in systemd systems.
🌐 14. Purpose of the "ping" command?
Tests connectivity between a source and destination.
🌍 15. Checking network configuration?
ifconfig or ip command for network settings.
🔐 16. What is SSH?
Secure remote login and file transfer using encryption.
🛑 17. Killing a process?
kill command with process ID (PID) or killall by name.
🔄 18. Purpose of "rsync"?
Efficient file synchronization and transfer.
🔍 19. Checking hardware information?
lshw provides detailed hardware info.
🚨 20. What is a firewall?
Controls network traffic for security.
📶 21. Checking system IP address?
ip addr command displays IPs for network interfaces.
⏰ 22. Purpose of "cron"?
Automates and schedules recurring tasks.
📂 23. Mounting a filesystem?
mount command attaches a filesystem to the directory tree.
🔄 24. What is "chroot"?
Creates a separate environment with its own root directory.
📉 25. Compressing and decompressing files?
gzip and gunzip for compression.
🛠 26. Purpose of "iptables"?
Configures the kernel firewall for network traffic filtering.
💡 27. Checking CPU usage?
Use top, htop, or mpstat.
👤 28. Creating user accounts?
useradd command adds new users.
🔍 29. Searching within files?
grep -r to search recursively within files in a directory.
💾 30. Checking available memory?
free command shows free and used memory in the system.
#coderbaba #CoderBaba #Programming #linux
¡Ya disponible! Investigación de Telegram 2025 — los principales insights del año 
