How to Get the First or Last Value in a Group Using Group by in SQL | Hacker News Reader