Hello @kartik,
You can either do like this:
SELECT name
FROM table2
WHERE name NOT IN
    (SELECT name 
     FROM table1)
or
SELECT name 
FROM table2 
WHERE NOT EXISTS 
    (SELECT * 
     FROM table1 
     WHERE table1.name = table2.name)
Hope it helps!!
Thank you!
Get a further understanding from the Microsoft SQL course