Skip to content

Commit d83639e

Browse files
authored
Update total-sales-amount-by-year.sql
1 parent c13270b commit d83639e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MySQL/total-sales-amount-by-year.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ FROM (SELECT s.product_id,
2525
) AS y
2626
WHERE YEAR(period_start) <= report_year AND
2727
YEAR(period_end) >= report_year
28-
GROUP BY product_id, report_year
28+
GROUP BY product_id,
29+
report_year
2930
ORDER BY product_id,
3031
report_year;
3132

0 commit comments

Comments
 (0)