have the turnovers by commercial ?

hi

ije veux le montant de tout les facture par commercial (empltable.emplid ) et supervisuer (commissionsalesgroup.groupId)

I do this

//////////////////////////////////////////////////////////////////////////////////////////////////////

custinvoicejour fact;
salestable slt;
commissionsalesgroup csg;
empltable emp;

;

while select sum(invoiceAmount)from fact
join slt where
fact.SALESID==slt.SALESID || fact.DATAAREAID==‘POC’
join csg
where slt.SALESGROUP==csg.GROUPID || csg.DATAAREAID==fact.DATAAREAID
join emp
where slt.SALESRESPONSIBLE==emp.EMPLID || emp.DATAAREAID==fact.DATAAREAID
group by csg.NAME,emp.DEL_NAME

print fact.InvoiceAmount;
pause;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

but it give me an error and I don’t now how I can give the good result some one can help me ?