P
pedro.j.manuel
Hi all,
I have this query.
Select VO.idOperation,G.Description AS Group,VO.Active,
count(VO.idOperation) as tot
from TB_ViaturOperation VO
INNER JOIN TB_Groups AS G ON VO.Group = G.CODGroup
Where VO.idOperation = 10000014
GROUP BY VO.idOperation,G.Description,VO.Active
Result :
idOperation Group Active tot
----------- ------------------------------------------------ ------
-----------
10000014 BEBEDOURO 0 1
10000014 BEBEDOURO 1 1
What i whant is to maque a sum in a tot field when the group name is
duplicate, what i have in a example.
How can i do this
Thanks,
Pedro
I have this query.
Select VO.idOperation,G.Description AS Group,VO.Active,
count(VO.idOperation) as tot
from TB_ViaturOperation VO
INNER JOIN TB_Groups AS G ON VO.Group = G.CODGroup
Where VO.idOperation = 10000014
GROUP BY VO.idOperation,G.Description,VO.Active
Result :
idOperation Group Active tot
----------- ------------------------------------------------ ------
-----------
10000014 BEBEDOURO 0 1
10000014 BEBEDOURO 1 1
What i whant is to maque a sum in a tot field when the group name is
duplicate, what i have in a example.
How can i do this
Thanks,
Pedro