Ernesto_Paez
MIS
Hi all,
i have this select sql as below
the checkno in the cursor can appears several times with the same value but the Aprpay, will be different, so i would like just grab the checkno and summarize the Aprpay for that checkno, so i can send this to an excel as just one row and the total amount for those 3 records in the cursor( i said 3 records as an example), instead of, for example 3 rows with the same checkno and the amount for each of that checkno.
Thanks a lot in advance
i have this select sql as below
Code:
Select "067006432" As RoutTrtno , "2000014857496" As ACCOUNT ,checkno As SerialNo, checkdate As IssueDte, Aprpay As Amount ,;
"320" As Trstype, Company As Company ;
FROM APCHCK04 ;
WHERE checkdate Between m.ldFrom And m.ldto Order By 4 Into Cursor ApexRecord Readwrite
the checkno in the cursor can appears several times with the same value but the Aprpay, will be different, so i would like just grab the checkno and summarize the Aprpay for that checkno, so i can send this to an excel as just one row and the total amount for those 3 records in the cursor( i said 3 records as an example), instead of, for example 3 rows with the same checkno and the amount for each of that checkno.
Thanks a lot in advance