Skip to content

Commit

Permalink
Update lab_10.1.sql
Browse files Browse the repository at this point in the history
As reported in #7 by @kyrylo.
  • Loading branch information
pmusa authored Aug 7, 2024
1 parent 6ff2e21 commit 579cfc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion developer/10_deleting_and_updating_data/lab_10.1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ENGINE = ReplacingMergeTree
PRIMARY KEY month;

--Step 2:
-- If you are using ClickHouse OSS, use `parseDateTime(date, '%d/%m/%Y')` instead of `toDate(date)`.
INSERT INTO rates_monthly
SELECT
toDate(date) AS month,
Expand Down Expand Up @@ -76,4 +77,4 @@ OPTIMIZE TABLE rates_monthly2 FINAL;

SELECT *
FROM rates_monthly2
WHERE month = '2022-04-30';
WHERE month = '2022-04-30';

0 comments on commit 579cfc1

Please sign in to comment.