I'm trying to execute the script below and it wont do it.
Is it possible to figure out what is wrong with it!
"SQL command not properly ended"
Thank-you
SELECT
en_code,
sa_sub,
costctr_code,
acc_code,
sum(gl_amt)
FROM
D_ENTITY_STG1 a,
D_SUBACCTS_STG1 b,
D_COSTCTR_STG1 c,
D_ACCTS_STG1 d,
F_ACCT_TRX_HIST_STG1 e
WHERE
a.en_code = c.gl_ent,
b.sa_sub = e.gl_sa,
c.costctr_code = e.gl_ctr,
d.acc_code = e.gl_acc
GROUP BY
a.en_code, b.sa_sub, c.costctr_code, d.acc_cod
Is it possible to figure out what is wrong with it!
"SQL command not properly ended"
Thank-you
SELECT
en_code,
sa_sub,
costctr_code,
acc_code,
sum(gl_amt)
FROM
D_ENTITY_STG1 a,
D_SUBACCTS_STG1 b,
D_COSTCTR_STG1 c,
D_ACCTS_STG1 d,
F_ACCT_TRX_HIST_STG1 e
WHERE
a.en_code = c.gl_ent,
b.sa_sub = e.gl_sa,
c.costctr_code = e.gl_ctr,
d.acc_code = e.gl_acc
GROUP BY
a.en_code, b.sa_sub, c.costctr_code, d.acc_cod