Skip to content

#1587 #2

@yuting1214

Description

@yuting1214

"""
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions