update record using join in sql code example Example: joins in update query update a join b on a.a_id=b.b_id set b.is_active = 1 where ....;