Actually, that only works when selecting, when I use 'DELETE' rather than 'SELECT *' it throws a syntax error?
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LEFT JOIN `RSCEmulation`.`users` ON (`RSCEmulation`.`rscd_bank`.`owner` = `RSCEm' at line 1
Right, you'll need to start with:
DELETE `RSCEmulation`.`rscd_bank`.* FROM ....
Regarding the other queries -- INSERT usually can't be optimized.
Can't say much about the others without seeing the accompanying EXPLAIN for each one -- which is tricky for delete.
You can "set := ... " in the same statement, as a subquery, but that's just a legibility thing.