- 이름과 balance출력 (balance가 10000이상인)
SELECT u.name ,SUM(amount) AS balance FROM Users AS u INNER JOIN Transactions AS t ON u.account=t.account GROUP BY u.account HAVING balance>10000