Orden de array_agg de PostgreSQL
Tabla 'animales': animal_name animal_type Tom Cat Jerry Mouse Kermit Frog Consulta: 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,...