Can anyoone help me out to convert this SQL query in SSRS.
create table tickets_every_hour_ict(ddate datetime,dgroup varchar(50)) Insert into tickets_every_hour_ict Select --incident.actie, incident.dataanmk , incident.ref_operatorgroup /*,incident.ref_status as "Status", incident.datumaangemeld as "Datum aanmelding" */ From incident WHERE incident.dataanmk >= DATEADD(day,-7, GETDATE()) AND incident.ref_operatorgroup in ('Automatisering') order by incident.dataanmk desc Select ddate1,[00:00],[01:00],[02:00],[03:00],[04:00],[05:00],[06:00],[07:00],[08:00],[09:00],[10:00],[11:00],[12:00], [13:00],[14:00],[15:00],[16:00],[17:00],[18:00],[19:00],[20:00],[21:00],[22:00],[23:00] From ( Select dgroup 'dgroup',cast(Convert(varchar(10),ddate,101)+' '+ convert(varchar(3),ddate,108) +'00' as date) ddate1,convert(varchar(3),ddate,108) +'00' dtime From tickets_every_hour_ict )p PIVOT ( Count(dgroup) for dtime in([00:00],[01:00],[02:00],[03:00],[04:00],[05:00],[06:00],[07:00],[08:00],[09:00],[10:00],[11:00],[12:00], [13:00],[14:00],[15:00],[16:00],[17:00],[18:00],[19:00],[20:00],[21:00],[22:00],[23:00]) )PVT