NewThe Learning module is now liveSee what's new

Table: Users

+-------------+------+
| Column Name | Type |
+-------------+------+
| user_id     | int  |
| coupon_date | date |
+-------------+------+

user_id is the primary key unless the input contains event-level duplicates.

Table: Transactions

+------------------+-------+
| Column Name      | Type  |
+------------------+-------+
| transaction_id   | int   |
| user_id          | int   |
| transaction_date | date  |
| amount           | float |
+------------------+-------+

transaction_id is the primary key unless the input contains event-level duplicates.

Test Cases
Input
-
Output
-
Expected
-