When it comes to ecommerce, Amazon is the king. Walmart, however, is still the kind of retail. They do more retail sales (on and offline) than anyone else. They managed to improve their ecommerce numbers to the point where they arent completely run over by Amazon yet they dont really compare.
In terms of total revenues, Amazon also generates a ton from AWS so it isnt all retail.