It's a common mix-up: a sump and an overhead tank do different jobs, and cleaning one doesn't cover the other. Your sump is typically a ground-level or underground tank that receives water first — from the municipal supply, a borewell or a tanker — and feeds your pump. The overhead tank, usually on the roof, is what the pump fills, and it gravity-feeds your taps.
Because the sump handles incoming water directly, it tends to collect heavier sediment, and it's more exposed to insects, debris and organic matter, especially if the lid isn't well sealed. Overhead tanks are more protected from ground-level contamination but are exposed to dust, heat and occasionally birds or rooftop debris through the vent.
Practically, both need attention on a similar schedule — roughly every six months — but the dirt in each is different, and skipping one doesn't make up for cleaning the other. A sump-only clean without addressing the overhead tank still leaves contaminated water sitting where your household draws from.
Most of our bookings cover both in the same visit for exactly this reason. If you're only planning to clean one this cycle, the sump is generally the higher-priority pick, since it's the entry point for whatever ends up in your water supply.