Giants third baseman Pablo Sandoval will miss the remainder of the season with a hamstring injury.