![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I have a database that keeps track of graduate students' scores for exams they take here as part of their graduate program. The receive either a 0, 1 or 2 for their score. When querying to count how many 0s, 1s and 2s each faculty has given (in separate queries, then put together in a report), it grabs only the information that is positive (not null) In other words, if a faculty has never given a 2 for a grade, it won't count them. Any suggestions? Below is the sql statement I have. SELECT [Advisor/AuthorList].AuthorFName, [Advisor/AuthorList].AuthorLName, Nz (Count(*),0) AS CountOfScore FROM ([Advisor/AuthorList] RIGHT JOIN Exams ON [Advisor/AuthorList].AuthorNum = Exams.ExamAuthor) LEFT JOIN Scores ON Exams.ExamNum = Scores.ExamNum GROUP BY [Advisor/AuthorList].AuthorFName, [Advisor/AuthorList].AuthorLName, Scores.Score HAVING (((Scores.Score)=0 Or (Scores.Score) Is Null)) ORDER BY [Advisor/AuthorList].AuthorLName; |
![]() |
| Thread Tools | |
| Display Modes | |
| |