Bagi saya, tampilannya seperti ini:
select
sum(case when b.materialid = 1 and
to_number(to_char(b.scale_eventdate, 'dd')) between 1 and 15 then
b.scale_weight
end) mtrl1,
--
sum(case when b.materialid = 2 and
to_number(to_char(b.scale_eventdate, 'dd')) between 16 and 31 then
b.scale_weight
end) mtrl2
from datalog_tab b
where to_char(b.scale_eventdate, 'yyyymm') = '202010'
Dengan kata lain, periksa apakah hari scale_eventdate
kolom milik paruh pertama atau kedua bulan dan jumlah scale_weight
sesuai.