1843. Suspicious Bank Accounts
Description
+----------------+------+
| Column Name | Type |
+----------------+------+
| account\_id | int |
| max\_income | int |
+----------------+------+
account\_id is the primary key for this table.
Each row contains information about the maximum monthly income for one bank account.
+----------------+----------+
| Column Name | Type |
+----------------+----------+
| transaction\_id | int |
| account\_id | int |
| type | ENUM |
| amount | int |
| day | datetime |
+----------------+----------+
transaction\_id is the primary key for this table.
Each row contains information about one transaction.
type is ENUM ('Creditor','Debtor') where 'Creditor' means the user deposited money into their account and 'Debtor' means the user withdrew money from their account.
amount is the amount of money depositied/withdrawn during the transaction.ac
Last updated