Hi. I need to please for a report from srsrs to have clients have each salesperson within a line of business. That is to say
Line of Business: X
Worker: Maria
Customers 12
In line of business X, the workerMaria has 12 curstomers. I am new to X ++, I would appreciate your collaboration, this is the syntax that he did but he repeats the values and does not calculate the number of customers well
int CONTAR;
while
select count (RecId) from custTable group by LineOfBusinessId, MainContactWorker
where custTable.LineOfBusinessId == lineOfBusiness.LineOfBusinessId
{
select * from lineOfBusiness
where lineOfBusiness.LineOfBusinessId == lineOfBusinessId
&& lineOfBusiness.LineOfBusinessId == custTable.LineOfBusinessId;
select * from hcmWorker where hcmWorker.RecId == custTable.MainContactWorker;
select * from dirPartyTable where dirPartyTable.RecId == hcmWorker.Person;
// && lineOfBusinessId == "PRUEB"
CONTAR++;