The Giants lowered their magic number to win the NL West to four and matched the San Francisco-era franchise record with 103 victories.