Hi Kobi,
I don't have your exact data but from the example you mentioned, I was able to get the desired behavior mentioned in comment using below query.
select ClientName, Address, Max(ServiceType) from CustTable Where ServiceType <> "" Group by Address into Temp1
Select ClientName, Address, (Str$(COL3) + "G") "ServiceType" from Temp1 into Temp2
Browse * from Temp2
If you want the result to be same as what you mentioned before correction than that can be done using below query.
Select * from CustTable where ServiceType <> "" order by ServiceType Desc into Temp1
Select * from Temp1 group by Address Order By ClientName Into Temp2
Browse * from Temp2
Thanks
Anshul