Hi @José Miguel del Río Martínez
You can try this:
select c-ip , count(cs) from (
select distinct c-ip,cs(User-Agent) cs from ...) a
group by c-ip
If there is still a problem, please post your data table.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.