Walmart Inc. set a high bar for other U.S. merchants by posting strong second-quarter sales and boosting its full-year outlook