Ordem array_agg PostgreSQL
Tabela 'animais': animal_name animal_type Tom Cat Jerry Mouse Kermit Frog Inquerir: SELECT array_to_string(array_agg(animal_name),';') animal_names, array_to_string(array_agg(animal_type),';') animal_types FROM animals; Resultado esperado: Tom;Jerry;Kerimt, Cat;Mouse;Frog OR Tom;Kerimt;Jerry,...