Querying the oldest and newest records within an SQL group How to find the oldest or most recent record associated with a particular foreign key. Jack Wilson September 18, 2017 PostgreSQL SQL Databases Rails