PostgreSQL
 sql >> Database >  >> RDS >> PostgreSQL

Postgres:ottieni valori minimi, massimi e aggregati in una selezione

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