[LeetCode/SQL] 1587. Bank Account Summary II

Sooyeon·2023년 11월 14일
0

문제풀이 

목록 보기
52/95
post-thumbnail

[LeetCode/SQL]


📌 1587. Bank Account Summary II

문제

풀이

- 이름과 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

0개의 댓글