Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
ORDER BY 句を使用して、特定の方法で GROUP BY の結果を順序付けできます。
次のクエリは、各製品の平均価格を検出し、その平均価格順に結果をソートします。
SELECT Name, AVG( UnitPrice ) FROM Products GROUP BY Name ORDER BY AVG( UnitPrice );