试图按计数排序 [英] Trying to Sort by Count
本文介绍了试图按计数排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我好像在这里碰壁砖。 我在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.
这篇关于试图按计数排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文