试图按计数排序

问题描述:

所以我好像在这里碰壁砖。 我在ReportBuilder中为SCCM做了一个简单的报告,我无法通过计数对结果进行排序。 

So I seem to be hitting a brick wall here.  I'm making a simple report for SCCM in ReportBuilder and I can't get it to sort the results by count. 

这是我的查询:

SELECT    

Model0,

制造商0,

COUNT(型号0)Cnt

来自v_GS_COMPUTER_SYSTEM

GROUP BY Model0,Manufacturer0

订购Cnt

SELECT    
Model0,
Manufacturer0,
COUNT (Model0) Cnt
FROM v_GS_COMPUTER_SYSTEM
GROUP BY Model0,Manufacturer0
ORDER BY Cnt

我的目标是一份模型和制造商的报告排序方式计数。

My goal is a report with model and manufacturer sorted by the count.

您好,

您可以在报告中对其进行排序,而不是在查询中执行此操作。

You can get it sorted in the report instead of doing it in the query.