PostgreSQL - Window Functions in PostgreSQL
How can you combine
FIRST_VALUE and LAST_VALUE to show the first and last login times per user from a logins table with columns user_id and login_time?