sql >> Base de Datos >  >> RDS >> PostgreSQL

Postgres:obtenga valores mínimos, máximos y agregados en una selección

SELECT array_agg(DISTINCT type) AS types,
       MIN(value) AS min,
       MAX(value) AS max
FROM your_table