Can anyone tell me how do achieve the following in MySQL: Update oitems SET Pstatus = SELECT product.Pstatus from products WHERE oitems.Pstatus not like "%Printed%" AND oitems.ProdCode=products.Code i.e. I need to update all order item status flields that have not been printed, with the matching product's current status regards Steve
--------------------------------------------------------------------- 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