One of the neatest ways to achieve this is to combine For XML Path and STUFF as follows:
SELECT
ID, Name,
Emails = STUFF((
SELECT ', ' + Email FROM Table2 WHERE Table2.ID = Table1.ID
FOR XML PATH ('')),1,2,'')
FROM Table1
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…