Table: purchases
+--------------+---------+ | Column Name | Type | +--------------+---------+ | order_id | integer | | user_id | integer | | product_type | varchar | | quantity | integer | | order_date | date | +--------------+---------+
order_idis the primary key for this table.
Each row represents one purchase transaction.quantityindicates the number of items purchased in that transaction.
Ask AI Assistant

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