SELECT Datum as MONDAY,

   (CASE WHEN eventUnit='Zeit' THEN eventTime

    ELSE eventNumber END) as AMOUNT 

   FROM CCSERVSTAT

  where accPeriodType='{{accpertype}}' and eventType='Anrufzahlen' and eventCategory='{{restype}}'