Použijte GROUP BY
dotaz a agregační funkce
:
select username, count(*), sum(plus), sum(minus)
from your_table
where username = 'example'
group by username;
Použijte GROUP BY
dotaz a agregační funkce
:
select username, count(*), sum(plus), sum(minus)
from your_table
where username = 'example'
group by username;