You need to LEFT OUTER JOIN
:
SELECT @t2.id, @t1.name from @t2 LEFT OUTER JOIN @t1 ON @t1.ID = @t2.ID
As opposed to an INNER JOIN
an OUTER JOIN
will take all rows from the source table instead of only those that also exist in the joined table.