/****** Script per comando SelectTopNRows da SSMS  ******/
SELECT dp.Name 'Lavoratore'
	,wcio.CheckDate 'Data'
	,wcio.CheckType 'Tipo'
FROM WorkerCheckInOut wcio
JOIN	Worker w
  ON	wcio.WorkerId = w.Id
JOIN	DirParty dp
  ON	dp.Id = w.DirPartyId
ORDER BY wcio.CheckDate