NewThe Learning module is now liveSee what's new

Description

Table: product_spend

+------------------+-----------+
| Column Name      | Type      |
+------------------+-----------+
| category         | string    |
| product          | string    |
| user_id          | integer   |
| spend            | decimal   |
| transaction_date | timestamp |
+------------------+-----------+

(user_id, transaction_date) is the primary key for this table.

Test Cases
Input
-
Output
-
Expected
-