1974maiden
MIS
Select
CUR_TRN_DT,
sum(F_LT_AMOUNT),
sum(F_LT_AMOUNT) over (order by CUR_TRN_DT)
FROM FAT_BSE_LEDGER_TRANS
where
LT_LEDGER_TYPE_ID='AA' and
CUR_TRN_DT>= '01/01/2007' and
GL_OBJ_ACCOUNT_DESC='22895'
group by CUR_TRN_DT
I'm trying to do a runningsum but when I run the code it's failing with expression 'F_LT_AMOUNT' is not specified in the Group By etc ...
Any help is appreciated !
CUR_TRN_DT,
sum(F_LT_AMOUNT),
sum(F_LT_AMOUNT) over (order by CUR_TRN_DT)
FROM FAT_BSE_LEDGER_TRANS
where
LT_LEDGER_TYPE_ID='AA' and
CUR_TRN_DT>= '01/01/2007' and
GL_OBJ_ACCOUNT_DESC='22895'
group by CUR_TRN_DT
I'm trying to do a runningsum but when I run the code it's failing with expression 'F_LT_AMOUNT' is not specified in the Group By etc ...
Any help is appreciated !