insert into CCILVD 
  select a.JAHR, a.MONAT, a.TAG, a.WPID as PSP, '' as PSPDETAIL, a.USKURZZ as USKURZZ, SUM(a.STUNDEN) as  SUM_STUNDEN, null as KOSTEN
    from CCVILVACC a
  where a.USKURZZ=? and a.JAHR=2017 and a.MONAT=1 and a.WPID!='Pause'
  group by a.JAHR, a.MONAT, a.TAG, a.WPID