我有这个 Sql Query 向我显示 Project 下有多少任务,但它不显示 Projects with 0 task 的问题有人可以帮助我吗?
SELECT Projects.projectName AS [Project Name],
COUNT(Projects_tasks.taskID) AS #tasks,
Projects.projectID AS [Project ID]
FROM Projects
INNER JOIN Projects_tasks
ON Projects.projectID = Projects_tasks.projectID
GROUP BY Projects.projectName,
Projects_tasks.taskID,
Projects.projectID