SELECT ID, ParentID FROM [SMD].[dbo].[ProposalFollowUp] t1 WHERE NOT EXISTS ( SELECT 1 FROM [SMD].[dbo].[ProposalFollowUp] t2 WHERE t2.ParentID = t1.ID )