In this video, we tackle a real-world SQL problem: how to calculate the total money a company lost due to discounts each year using multi-table JOINs, aggregation functions, and date functions.
🔍 What you’ll learn:
Using JOIN to combine data from multiple tables
Calculating discount impact using SUM() and ROUND()
Extracting year from dates with YEAR()
Organizing data with GROUP BY and sorting results
📌 SQL Concepts Covered:
JOIN, GROUP BY, ORDER BY, ROUND(), SUM(), YEAR(), and basic cost calculations.
Download
0 formats
No download links available.
SQL Problem: Calculate Discount Losses by Year Using Joins & Aggregation | NatokHD