Gunakan agregasi bersyarat:
select
date,
max(case when name = 'sensor01' then value end) sensor01,
max(case when name = 'sensor02' then value end) sensor02
from mytable
group by date
Gunakan agregasi bersyarat:
select
date,
max(case when name = 'sensor01' then value end) sensor01,
max(case when name = 'sensor02' then value end) sensor02
from mytable
group by date