I have 2 table as describe in the code below:
DECLARE @Table1 TABLE ( [ForeignKeyID] INT ,[Name] CHAR ,[StartDate] DATE ,[FinishDate] DATE