I'm working MS Access 2016, on a table that has student results: So the fields are simply studentID, Test, and Score. For reporting purposes, I need to generate a CSV file that has a student's TestScore values all in one row. So if I had:
StudentID: Test: TestScore:
A123 TestA 80
A123 TestB 90
B123 TestA 70
B123 TestB 95
How do I generate a table for export that looks like:
StudentID: TestA: TestB:
A123 80 90
B123 70 95
I don't think crosstabs would work because not all students in the table have taken all the same tests. And there are several thousand cases. I also have come to understand that may not be possible via SQL in MS Access.
Many thanks in advance for any helpful advice.
So thank you to Andre and Alex for guiding me to this solution, which works for the original question:
Table name here is "Output".
For someone else searching for a similar solution, note that I used "Last" instead of something else (you might want First, Count, etc.).