Login or sign up Lost password?
Login or sign up
= Name WHEN NOT MATCHED THEN INSERT (ID, Name) VALUES (Id, Name) To actually answer your question I would do it something like as follows.