UPDATE vn.claimEnd ce
        JOIN(
            SELECT id
                FROM vn.claimEnd
                WHERE claimDestinationFk NOT IN 
                    (SELECT id FROM vn.claimDestination WHERE id IS NOT NULL)
        ) s ON ce.id = s.id
    SET ce.claimDestinationFk = 1;