Help with query

[expired user #10178]'s profile image [expired user #10178] posted 8 years ago in General Permalink

Folks,

How would I modify this to add values for each day rather than giving me a breakdown?

select * from (

select 'metric_chute_jam_t_dest' Metric, year, month, day, device, dest, sum(value) from metric_chute_jam_t_dest where (length(device)>0 and device!='0' ) group by year, month, day, device, dest

) t where device = 0005

Please login to leave a reply, or register at first.