Skip to content

Unable to have computation in GROUP BY statement #18

@saklanipankaj

Description

@saklanipankaj
SELECT c, SUM(b/a)
FROM t1
GROUP BY c;

ERROR 13180 (HY000): Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'testdb.t1.b.ElGamal.Enc' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

unable to do group by when doing computation inside a SUM function

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions