Users and Transactions tables on the account field.SUM function to calculate the total balance for each user.HAVING clause to filter the results to only include users with a balance greater than 10000.erDiagram
Users {
int account
varchar name
}
Transactions {
int trans_id
int account
int amount
date transacted_on
}
Users ||--o{ Transactions : has