BEGIN;
CREATE TEMP FACT TABLE new_table DISTRIBUTE BY hash(a.var3) as
SELECT (YEAR(a.var1) - b.var2), a.var3
FROM d.data1 a, c.data2 b
WHERE (YEAR(var1) - var2) > 40
;
GO
SELECT * FROM age_DRG;
END;
I am not sure what is wrong with this code. I keep getting this error
"Executed as Single statement. Failed [34 : HY000] [AsterData][ASTERJDBCDSII](34) NOTICE: current transaction is aborted, queries ignored until end of transaction block ()
Elapsed time = 00:00:00.016
STATEMENT 1: BEGIN;
CREATE Statement failed. "