PostgreSQL array_agg Reihenfolge
Tabelle 'Tiere': animal_name animal_type Tom Cat Jerry Mouse Kermit Frog Abfrage: SELECT array_to_string(array_agg(animal_name),';') animal_names, array_to_string(array_agg(animal_type),';') animal_types FROM animals; Erwartetes Ergebnis: Tom;Jerry;Kerimt, Cat;Mouse;Frog OR Tom;Kerimt;Jerry,...