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

Table: user_transactions

+------------------+----------+
| Column Name      | Type     |
+------------------+----------+
| transaction_id   | int      |
| product_id       | int      |
| user_id          | int      |
| spend            | decimal  |
| transaction_date | date     |
+------------------+----------+

transaction_id is the primary key. Each row records one purchase transaction.

Test Cases
Input
-
Output
-
Expected
-