Не покидает чувство, что этот запрос можно написать лаконичнее, но не доходит как !
select 'Панель 1 ' as "панель",
(select sum(no_light)/3600.0 from sector1 where button=1 AS "кнопка 1",
(select sum(no_light)/3600.0 from sector1 where button=2 AS "кнопка 2",
(select sum(no_light)/3600.0 from sector1 where button=3 AS "кнопка 3",
(select sum(no_light)/3600.0 from sector1 where button=4 AS "кнопка 4",
(select sum(no_light)/3600.0 from sector1 where button=5 AS "кнопка 5",
(select sum(no_light)/3600.0 from sector1 where button=6 AS "кнопка 6",
(select sum(no_light)/3600.0 from sector1 where button=7 AS "кнопка 7",
(select sum(no_light)/3600.0 from sector1 where button=8 AS "кнопка 8",
(select sum(no_light)/3600.0 from sector1 where button=9 AS "кнопка 9",
(select sum(no_light)/3600.0 from sector1 where button=10 AS "кнопка 0",
(select sum(no_light)/3600.0 from sector1 where button=0 AS "не выбрано";