Advanced MySql Query: Update table with info from another table

UPDATE business b, people p
   SET b.email = p.email
 WHERE b.business_id = p.business_id
   AND p.sort_order="1"
   AND b.email=""

Leave a Comment