I am new to SQL. I am trying to get my query to display in the format below:
FacultyName Book Book chapter Journal Article Conference
CLM 5 11 5 1
Health Sciences 1 0 0 0
Humanities 1 0 0 0
Science 0 0 0 3
At the moment, this is how it is displayed:
FacultyName Type CountOfSubmissionID
CLM Book 5
CLM Book chapter 11
CLM Conference 1
CLM Journal article 5
Health Sciences Book 1
Humanities Book 1
Science Conference 3
This the query that got me this:
SELECT Faculty.FacultyName,
Submission.Type,
Count(Submission.SubmissionID) AS CountOfSubmissionID
FROM Submission
INNER JOIN ((Faculty INNER JOIN School ON Faculty.FacultyID = School.[Faculty ID])
INNER JOIN (Researcher INNER JOIN ResearcherSubmission
ON Researcher.ResearcherID = ResearcherSubmission.ResearcherID)
ON School.SchoolID = Researcher.SchoolID)
ON Submission.SubmissionID = ResearcherSubmission.SubmissionID
GROUP BY Faculty.FacultyName, Submission.Type
Here are my tables:
Please advice on how I can get my query to display in the format of the first table I have drawn up.

PIVOTfor your case.