I'm new to SQL and I need to check whether or not values in a row exist before I insert them.
I am attempting to insert details to several rows at once.
The code I have is as follows:
insert into [Test].[Projects]([TestID], [GroupID], [TestingID], [Grade]) values (314, 9, 77, 2) ,(314, 9, 77, 3) ,(314, 9, 77, 4) ,(329, 2, 65, 2) ,(329, 2, 65, 3) ,(329, 2, 65, 4) go If someone could help me to insert these where the row values do not exist then I would be very grateful