Anderson's home run, a two-run shot, extended his hitting streak to 17 games. Guerrero also hit a two-run homer and Rivera's was a solo blast.
Jon Garland (11-7) worked seven innings and earned the win. Garland yielded three runs and nine hits.
Losing pitcher Jarrod Washburn (5-12) gave up four tuns and seven hits over seven innings.