I have two tables where one contains author deatils and the other article details. One author may have many articles. In the article table is a field entitled "Decision"
The decision field can be "Accepted" or "Rejected". I want a query to output a table of author name and ID followed by a count of their number of submissions, accepts and rejects. The problem arises (I'm rather new to SQL so bear with me) because at the moment I am using a WHERE Article.Decision="Accept" or somelike, and can't find how to build in seperate dependancys on other generated fields without breaking syntax. Any help much appreciated!
Apologies, here is the current SQL statement which returns the authors which have a match and the count. Just an expression to return this table with authors which have a null count would be fine (then I could just append seperate queries to construct the whole thing)
SELECT Authors.[Corresponding Author URN], Authors.[Corresponding Author Surname], Count(Articles.Decision) AS CountOfDecision
FROM Authors LEFT OUTER JOIN Articles ON Authors.[Corresponding Author URN] = Articles.[Corresponding Author URN]
WHERE (((Articles.Decision)="Rejected"))
GROUP BY Authors.[Corresponding Author URN], Authors.[Corresponding Author Surname];
THE URN is the ID.