A understand that a problem with temporary tables is that you can't do a self-join in MySQL 3.xx using temporary tables. I have a situation that requires exactly this (the alternative is not algorithm-effective). I wonder if the following is a practical solution: to create a copy of the temporary table and use it together with the "original" temporary table to execute the join ? -- Ciprian > Ambition is a poor excuse for not having enough sense to be lazy. --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php