Use um
GROUP BY
consulta e funções agregadas
:select username, count(*), sum(plus), sum(minus)
from your_table
where username = 'example'
group by username;
GROUP BY
consulta e funções agregadas
:select username, count(*), sum(plus), sum(minus)
from your_table
where username = 'example'
group by username;