You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
account is the primary key (column with unique values) for this table.
14
+
Each row of this table contains the account number of each user in the bank.
15
+
There will be no two users having the same name in the table.
16
+
17
+
18
+
Table: Transactions
19
+
20
+
+---------------+---------+
21
+
| Column Name | Type |
22
+
+---------------+---------+
23
+
| trans_id | int |
24
+
| account | int |
25
+
| amount | int |
26
+
| transacted_on | date |
27
+
+---------------+---------+
28
+
trans_id is the primary key (column with unique values) for this table.
29
+
Each row of this table contains all changes made to all accounts.
30
+
amount is positive if the user received money and negative if they transferred money.
31
+
All accounts start with a balance of 0.
32
+
33
+
34
+
Write a solution to report the name and balance of users with a balance higher than 10000. The balance of an account is equal to the sum of the amounts of all transactions involving that account.
0 commit comments