I want to fill a table with data that might be overlapping. I do this a few times in the code. so, the first time it is
INSERT INTO A (SELECT * FROM B)
and then the second time it is
INSERT INTO A
SELECT * FROM C
WHERE NOT EXISTS (SELECT * FROM A Where A.field = C.field)
the re-insertion is done a total of 3 times. I could change the code to just one insertion using a UNION on the 4 sub-tables, but it will require alot of re-design, so I wanted to know how much performance penalty I am receving right now
Thanks!!