1734. Bank Account Summary II
My accepted SQL solution to LeetCode problem 1734, Bank Account Summary II, running in 733ms.
- Difficulty: Easy
- SQL
- Runtime 733ms
- Memory 0.0B
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
SQL
Accepted on LeetCode — runtime 733ms, memory 0.0B, accepted 2025-12-31.
SELECT u.name, SUM(t.amount) AS balance
FROM Users u
JOIN Transactions t ON u.account = t.account
GROUP BY u.account
HAVING SUM(t.amount) > 10000