Postgresql globale de la matrice de

Salut j'ai deux tables

Student
--------
Id  Name
1   John    
2   David
3   Will

Grade
---------
Student_id  Mark
1           A
2           B
2           B+
3           C
3           A

Est-il possible de faire natif Postgresql sélectionnez cette option pour obtenir des résultats comme ceci:

Name    Array of marks
-----------------------
'John',     {'A'}
'David',    {'B','B+'}
'Will',     {'C','A'}

Mais pas comme ce

Name    Mark
----------------
'John',     'A'
'David',    'B'
'David',    'B+'
'Will',     'C'
'Will',     'A'
InformationsquelleAutor Eldar | 2012-06-07