Flatten a Single Relational Table
Hello authors,
I could not find any vba code in the book to perform the following. Please offer some support.
I have a table StudentResults(StudentName, CourseName, Grade) containing the following sample data :
John, C100, A
John, C101, B+
Betty, C100, A-
Betty, C200, B
Betty, C201, B-
...etc
I need to flatten it so that it becomes as follows :
C100 C101 C200 C201
John A B+ nil nil
Betty A- nil B B-
Hope you could provide vba code to create it
Thank you.
|