top of page


Understanding the “GO” Command in SQL Server
When writing SQL queries in SQL Server, you may have come across the GO command. But why do we use it? What purpose does it serve, and...
Sep 30, 20244 min read
![1384 - Total Sales Amount by Year [LeetCode]](https://static.wixstatic.com/media/b635b2_b3c0aae0c5d14ef7b2b17ce19ac7008b~mv2.png/v1/fill/w_295,h_172,fp_0.50_0.50,q_95,enc_avif,quality_auto/b635b2_b3c0aae0c5d14ef7b2b17ce19ac7008b~mv2.webp)
1384 - Total Sales Amount by Year [LeetCode]
(To see the full code, go to my github ) Write a solution to report the total sales amount of each item for each year, with corresponding...
Sep 29, 20243 min read


Mastering SQL: 12 Essential Tips to Optimize Performance and Secure Your Queries
Writing SQL queries might seem simple, but creating ones that are both efficient and easy to maintain takes practice. By following best...
Sep 22, 20245 min read
![1127. User Purchase Platform [LeetCode]](https://static.wixstatic.com/media/b635b2_b23d058b29e946249bc7cc2baa123b4d~mv2.png/v1/fill/w_305,h_172,fp_0.50_0.50,q_95,enc_avif,quality_auto/b635b2_b23d058b29e946249bc7cc2baa123b4d~mv2.webp)
1127. User Purchase Platform [LeetCode]
(To see the full code, go to my github ) Write an SQL query to find the total number of users and the total amount spent using mobile...
Sep 12, 20243 min read
![1645 - Hopper Company Queries II [LeetCode]](https://static.wixstatic.com/media/b635b2_754a166e17eb47d1a99f5643b6ff92a7~mv2.png/v1/fill/w_247,h_172,fp_0.50_0.50,q_95,enc_avif,quality_auto/b635b2_754a166e17eb47d1a99f5643b6ff92a7~mv2.webp)
1645 - Hopper Company Queries II [LeetCode]
(To see the full code, go to my github ) Write an SQL query to calculate the percentage of working drivers (working_percentage) for each...
Aug 31, 20244 min read

Mastering SQL: Identifying Customers with Consecutive Increasing Transactions
In this article, we will explore how to write an SQL query that identifies customers who have made consecutive transactions with...
Aug 30, 20245 min read

![2494 — Merge Overlapping Events in the Same Hall [LeetCode]](https://static.wixstatic.com/media/b635b2_4a2e47cd8bbe49d491be2e647a6c3cf3~mv2.webp/v1/fill/w_264,h_172,al_c,q_90,enc_avif,quality_auto/b635b2_4a2e47cd8bbe49d491be2e647a6c3cf3~mv2.webp)
2494 — Merge Overlapping Events in the Same Hall [LeetCode]
Question: Write an SQL query to merge all the overlapping events that are held in the same hall. Two events overlap if they have at...
Aug 28, 20243 min read

SQL CHALLENGE: Calculating the number of remaining inventories
We want to generate an inventory age report which would show the distribution of remaining inventory across the length of time the...
Jul 16, 20243 min read
![Maximize Prime Item Inventory [Amazon SQL Interview Question]](https://static.wixstatic.com/media/b635b2_a5386b9501bc488aac2e5a90e3af0c9e~mv2.png/v1/fill/w_272,h_172,fp_0.50_0.50,q_95,enc_avif,quality_auto/b635b2_a5386b9501bc488aac2e5a90e3af0c9e~mv2.webp)
Maximize Prime Item Inventory [Amazon SQL Interview Question]
(To see the full code, go to my github ) Amazon wants to maximize the storage capacity of its 500,000 square-foot warehouse by...
Jul 14, 20243 min read


Solving a Complex SQL Challenge on HackerRank: “15 Days of Learning SQL”
Tackling SQL challenges on platforms like HackerRank can be quite demanding, especially when the problem requires advanced techniques...
Jun 10, 20244 min read
bottom of page