1336. Number of Transactions per Visit
Description
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| user\_id | int |
| visit\_date | date |
+---------------+---------+
(user\_id, visit\_date) is the primary key for this table.
Each row of this table indicates that user\_id has visited the bank in visit\_date.+------------------+---------+
| Column Name | Type |
+------------------+---------+
| user\_id | int |
| transaction\_date | date |
| amount | int |
+------------------+---------+
There is no primary key for this table, it may contain duplicates.
Each row of this table indicates that user\_id has done a transaction of amount in transaction\_date.
It is guaranteed that the user has visited the bank in the transaction\_date.(i.e The Visits table contains (user\_id, transaction\_date) in one row)ac
Last updated