Select FEDOC_F, sum(IMTOD_F), SUM(SUBTO_F) From "C:\SIF2000\BASES\REMISION.dbf" GROUP BY FEDOC_F