Utilice un GROUP BY
consulta y funciones agregadas
:
select username, count(*), sum(plus), sum(minus)
from your_table
where username = 'example'
group by username;
Utilice un GROUP BY
consulta y funciones agregadas
:
select username, count(*), sum(plus), sum(minus)
from your_table
where username = 'example'
group by username;