What is the equivalent query for
SELECT *,SUM(total_request_count) AS total_calls FROM API_REQUEST_SUMMARY
in DB2. It says * is invalid in db2 data explorer. After running this I got below error
An unexpected token "*" was found following "SELECT ". Expected tokens may include: "NULL".. SQLCODE=-104, SQLSTATE=42601, DRIVER=3.68.61
Any Idea to resolve this is much appreciated.
Best Answer
any not aggregated column must be included in GROUP BY
alternative if many columns for GROUP BY
it is my work solution, may be other present as well