Added complex update with join