I have to collect and store stats about many things where I work, and I'm suddenly having a problem with the process on one table in particular. The relevant part of the process for getting these stats involves just dumping data into a temp table and inserting any new data from that table into the main table. So I have something like this:I have to collect and store stats about many th