maxwell2323
Programmer
Can you help me with an alternative that might be more efficient and quicker than what I have in these few lines. I am inserting some records from a temp table into another table that already has records, and I have just one condition. Here is my code:
Insert into #MainTable
Select * from #Results3 as R3
Where R3.PatGuid NOT IN
(Select Pat.Guid from #MainTable)
--Thanks !!!!!!!!!
Insert into #MainTable
Select * from #Results3 as R3
Where R3.PatGuid NOT IN
(Select Pat.Guid from #MainTable)
--Thanks !!!!!!!!!