I have two tables (made it a little simpler than the actual problem):
Student_T
Name Age
Mike 34
Steve 29
Test_T
Student Type
Mike A
Mike B
Mike B
Steve C
Student is linked to Student_T.Name
Type can only be A, B or C
The resulting report should look like:
Name A-test B-test C-test
Mike 1 2 0
Steve 0 0 1
I'm thinking of something like
SELECT Name, COUNT Type IF Type=A, COUNT Type IF Type=B...
FROM Student_T, Test_T
WHERE Name=Student
GROUP BY Name
Unfortunately COUNT IF doesn't exist in Access. Is there a similar command or is there a better way of doing it?
Student_T
Name Age
Mike 34
Steve 29
Test_T
Student Type
Mike A
Mike B
Mike B
Steve C
Student is linked to Student_T.Name
Type can only be A, B or C
The resulting report should look like:
Name A-test B-test C-test
Mike 1 2 0
Steve 0 0 1
I'm thinking of something like
SELECT Name, COUNT Type IF Type=A, COUNT Type IF Type=B...
FROM Student_T, Test_T
WHERE Name=Student
GROUP BY Name
Unfortunately COUNT IF doesn't exist in Access. Is there a similar command or is there a better way of doing it?