My limited SQL knowledge prompted this post!
I have a stored procedure that runs a series of updates.
There are 6 update statements, that could very well be mashed into one large update statement, but I dont know what that will mean for performance.
Table basics: 6 tables are hit. 3 of which will never have more than about 5000 records, 3 of which grow indefinitely (currently around 1-2 million records, properly indexed, etc). Is there a speed advantage to joining all the tables and doing one massive update statement vs keeping it as 6 separate updates?
Im looking for the most efficient way to do it, even if it shaves a second off.
Thanks.
EDIT:
My apologies to all. I am only updating a single table, but verifying data from all 6 to update the one table. (ie. checking to see if table2.somevalue is blank then flag the record in table1 as "error")