Använd villkorlig aggregering:
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
Använd villkorlig aggregering:
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