SELECT Date, [Fulltime], [Contract], [Casual] FROM ( SELECT Date, JobType, WW FROM CanLog WHERE WW BETWEEN '2018/06/06' and '2018/06/09' ) AS DT PIVOT(COUNT(WW) FOR Jobtype IN([Fulltime], [Contract], [Casual])) AS PVT
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)