The San Diego County Water Authority has reached a deal to sell some of its water to part of Riverside County.