1

開いているタスクの数で並べ替える方法はありますか?

SELECT Tasks.ClientName, Count(*) AS OpenTaskCount
FROM Tasks
WHERE (((Tasks.Completed)=False))
GROUP BY Tasks.ClientName
ORDER BY OpenTaskCount DESC;

これを試すと、GUI で OpenTaskCount を求めるプロンプトが表示されます。

4

2 に答える 2

2

これを試して:

SELECT Tasks.ClientName, Count(*) AS OpenTaskCount
FROM Tasks
WHERE (((Tasks.Completed)=False))
GROUP BY Tasks.ClientName
ORDER BY COUNT(*) DESC;
于 2013-11-05T01:37:22.277 に答える
2

また:

SELECT Tasks.ClientName, Count(*) AS OpenTaskCount
FROM Tasks
WHERE (((Tasks.Completed)=False))
GROUP BY Tasks.ClientName
ORDER BY Count(*) DESC;

また

SELECT Tasks.ClientName, Count(*) AS OpenTaskCount
FROM Tasks
WHERE (((Tasks.Completed)=False))
GROUP BY Tasks.ClientName
ORDER BY 2 DESC;

動作するはずです。

于 2013-11-05T01:37:22.553 に答える