Ich bekomme folgenden Fehler beim Ausführen von SQL-Befehl über ODBC.Teradata Fehler 42000
Details: "ODBC: FEHLER [42000] [Teradata] [ODBC Teradata-Treiber] [Teradata Database] Syntaxfehler, erwartete etwas wie ein 'UDFCALLNAME' Schlüsselwort zwischen '.' und das Schlüsselwort 'SUM'. "
Der Code, den ich ausführe, folgt.
SELECT t1.BALANCE_DATE, t1.SUM(LCY_BALANCE) AS TOTAL_DEP, t2.SUM(LCY_BALANCE) AS TOTAL_CASH FROM (SELECT LCY_BALANCE, BALANCE_DATE FROM MY_BALANCE_TABLE WHERE LINE_NUMBER BETWEEN '2300' AND '3311' AND BALANCE_DATE BETWEEN '2015-07-01' AND 2016-06-30' AND BRANCH_CODE = '5520' GROUP BY BALANCE_DATE) t1 LEFT JOIN (SELECT LCY_BALANCE, BALANCE_DATE FROM MY_BALANCE_TABLE WHERE LINE_NUMBER IN ('0040','0050','0060','0105','0110','0115') AND BALANCE_DATE BETWEEN '2015-07-01' AND 2016-06-30' AND BRANCH_CODE = '5520' GROUP BY BALANCE_DATE) t2 ON t1.BALANCE_DATE = t2.BALANCE_DATE
Was den Fehler sein könnte, bitte führen.
Grüße
KAM