Skip to content

Commit

Permalink
[developer] Fix Lab 7.2.4 stale question and solution (#27)
Browse files Browse the repository at this point in the history
The question was based on the last 12 months, which didn't return any
data as of October 2024. We updated the question to each month of 2023
and this is the solution update.
  • Loading branch information
pmusa authored Oct 16, 2024
1 parent 9d848f2 commit 574efb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions developer/07_aggregations_in_mvs/lab_7.2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ SELECT
max(max_price)
FROM uk_prices_aggs_dest
WHERE
month >= (toStartOfMonth(now()) - (INTERVAL 12 MONTH))
AND month < toStartOfMonth(now())
month >= toDate('2023-01-01')
AND month < toDate('2024-01-01')
GROUP BY month
ORDER BY month DESC;

Expand Down Expand Up @@ -110,4 +110,4 @@ SELECT
max(max_price)
FROM uk_prices_aggs_dest
WHERE toYYYYMM(month) = '202408'
GROUP BY month;
GROUP BY month;

0 comments on commit 574efb4

Please sign in to comment.