I am having trouble inserting the results of a survey into a table. I have to do an insert on 3 different tables and on the last table it somehow keeps inserting over a thousand records.
This question is related to another one that was previously answered by agx. Anyway I'm attaching my code as well as my db schema.
I have commented on the insert statement that is causing all this trouble. Let me know if you have any questions.