Amazon beats expectations to avoid tech earnings slump

The e-commerce giant on Thursday reported net sales of $121.2 billion for the quarter ended June…