Mysql
 sql >> Database >  >> RDS >> Mysql

Totalizzare i dati MySQL?

Usa un GROUP BY query e funzioni aggregate :

select username, count(*), sum(plus), sum(minus)
from your_table
where username = 'example'
group by username;