Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

Ajuda da subconsulta do MySQL


Tente isto:
select
    u.website,
    sum(e.ULVolume + e. DLVolume) as volume
from mytable e
left join mytable u on u.PID = e.PID and u.event ='update'
where e.Event = 'end'
group by 1;