mysqldude
Error codes › 3028

MySQL & MariaDB error 3028 ER_AGGREGATE_ORDER_FOR_UNION

MySQLExpression #… of ORDER BY contains aggregate function and applies to a UNION, EXCEPT or INTERSECT
MariaDBExpression #… of ORDER BY contains aggregate function and applies to a UNION
MySQLMariaDB
SymbolER_AGGREGATE_ORDER_FOR_UNIONER_AGGREGATE_ORDER_FOR_UNION
SQLSTATEHY000HY000
TypeServer errorServer error
Versionssince 5.7.44 activesince 10.2.44 active
How the message changed between versions
MySQL fromSymbolMessage
5.7.44ER_AGGREGATE_ORDER_FOR_UNIONExpression #%u of ORDER BY contains aggregate function and applies to a UNION
8.0.36ER_AGGREGATE_ORDER_FOR_UNIONExpression #%u of ORDER BY contains aggregate function and applies to a UNION, EXCEPT or INTERSECT