fix: the amount here is actually the revenue sum

This commit is contained in:
2024-07-11 16:05:13 -04:00
parent 9455039fd6
commit 10d1f6e831

View File

@@ -148,9 +148,7 @@ WHERE Products.color = 'red'
AND Sales.date = '2024-02-14';
-- Question 1 part 2 c)
-- One sID can have multiple products
-- We need the DISTINCT keyword
SELECT COUNT(DISTINCT sID)
SELECT SUM(Sales.amount)
FROM Sales
WHERE Sales.date = '2024-02-14';