Skip to content

Commit a0c54b2

Browse files
committed
fix: update
1 parent 92a25c1 commit a0c54b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

solution/3200-3299/3214.Year on Year Growth Rate/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ transaction_id 列唯一标识了表中的每一列。
138138
# Write your MySQL query statement below
139139
WITH
140140
T AS (
141-
SELECT product_id, year(transaction_date) year, SUM(spend) tot_spend
141+
SELECT product_id, YEAR(transaction_date) year, SUM(spend) tot_spend
142142
FROM user_transactions
143143
GROUP BY 1, 2
144144
),

solution/3200-3299/3214.Year on Year Growth Rate/README_EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ We can first group by `product_id` and `year(transaction_date)` to perform the s
137137
# Write your MySQL query statement below
138138
WITH
139139
T AS (
140-
SELECT product_id, year(transaction_date) year, SUM(spend) tot_spend
140+
SELECT product_id, YEAR(transaction_date) year, SUM(spend) tot_spend
141141
FROM user_transactions
142142
GROUP BY 1, 2
143143
),

solution/3200-3299/3214.Year on Year Growth Rate/Solution.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Write your MySQL query statement below
22
WITH
33
T AS (
4-
SELECT product_id, year(transaction_date) year, SUM(spend) tot_spend
4+
SELECT product_id, YEAR(transaction_date) year, SUM(spend) tot_spend
55
FROM user_transactions
66
GROUP BY 1, 2
77
),

0 commit comments

Comments
 (0)