I am super new to SQL so my apologies if I\'m doing everything wrong, but is there any way I could modify this code
select e.*, sum(case when (o.svcdate_f