Walmart also reported lower quarterly revenue than Amazon for the first time ever.