SQL: How to get first value based on time without a JOIN or a Window Function | Hacker News Reader