leetCode-SQL icon indicating copy to clipboard operation
leetCode-SQL copied to clipboard

#1587

Open yuting1214 opened this issue 4 years ago • 0 comments

""" SELECT u.name, SUM(t.amount) AS 'balance' FROM Users u LEFT JOIN Transactions t ON u.account = t.account GROUP BY t.account HAVING balance > 10000 """

This answer would be problematic, because the select statement contains nonaggregated column or columns not specified by the groupby.

yuting1214 avatar Jun 27 '21 11:06 yuting1214