Need help with this query - it will not run token error. Here is the query:
SELECT SUM ("T16.CTDT".TD_DETAIL_AMT_01 * .10) AS TOTAL, "T16.CPRP".CP_DISTRICT_CODE
Software/Hardware used:
Iseries Navigator
ASKED:
January 14, 2010 5:12 PM
UPDATED:
January 15, 2010 4:22 PM
…And the rest of the query is… what? The query isn’t complete. There is no FROM clause shown. Since there is a SUM() function and a second detail column, there should also be a GROUP BY clause.
Tom
Sorry – when I copied the Query – I did not copy the whole thing. From your response, I was just missing the “Group by” with one of the same fields in the select statement. Thanks for the quick response.