What is the best way to improve runtime on the query below?
Some background: I have a table that records the users and users\' events detail (what event type, when th