Description
Table: user_transactions
+------------------+----------+ | Column Name | Type | +------------------+----------+ | transaction_id | integer | | product_id | integer | | spend | decimal | | transaction_date | datetime | +------------------+----------+
transaction_idis the primary key. Each row represents one purchase transaction.
Table: product_info
+--------------+---------+ | Column Name | Type | +--------------+---------+ | product_id | integer | | product_name | varchar | | category | varchar | +--------------+---------+
product_idis the primary key. Each row maps a product to its category.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
-
Output
-
Expected
-