Here is the sql statement:
Insert into BEGACCOUNTINFO (ACCOUNT, ACCOUNTNAME, ENDBAL)
select ACTNUMST,ACTDESCR,SUM(PERDBLNC)
FROM [EQU-SRV-DB].RCG.dbo.Actg_1FR
WHERE PERIODID <= '02'
GROUP BY ACTNUMST, ACTDESCR
ORDER BY 1;
I would like to eliminate any rows wher sum(perdblnc) is 0 while inserting. How would I do that in this statement? Thanks for all help in advance.
Dave
Insert into BEGACCOUNTINFO (ACCOUNT, ACCOUNTNAME, ENDBAL)
select ACTNUMST,ACTDESCR,SUM(PERDBLNC)
FROM [EQU-SRV-DB].RCG.dbo.Actg_1FR
WHERE PERIODID <= '02'
GROUP BY ACTNUMST, ACTDESCR
ORDER BY 1;
I would like to eliminate any rows wher sum(perdblnc) is 0 while inserting. How would I do that in this statement? Thanks for all help in advance.
Dave