Joc Pederson and Christian Walker both had two RBIs, and the Arizona Diamondbacks avoided a three-game sweep by beating the Detroit Tigers 6-4 on Sunday.