Dan Coates
Photos
Writing
Projects
TIL
Me
← Back to TIL
Order by statements in postgres aggregates
postgres
Jan. 11, 2022
select
array_agg
(
id
ORDER
BY
created_at
)
as
recent_users
from
users