Here's my situation. I have to tables
Parent
| id | other | 
|---|---|
| 1 | ... | 
| 2 | ... | 
| 3 | ... | 
| 4 | ... | 
Children
| id | parent_id | time_created | 
|---|---|---|
| 1 | 1 | 2022-11-17 13:18:49 | 
| 2 | 1 | 2022-11-17 13:47:05 | 
| 3 | 2 | 2022-11-18 12:00:22 | 
| 4 | 2 | 2022-11-18 16:06:17 | 
What I would like to do, using SQLAlchemy in Python, is to retrieve the most recent Children for every parent. The result of the query would return Children with IDs 2 and 4 since they are the most recent.
 
    