Save 25%Black Friday: 25% off all plans — use code BLACKFRIDAY2026 at checkout. Ends Monday, Dec 7.Claim the deal

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
-