我有一個SQL查詢提取排序數據的總和列值。我有一個名爲CustomerPoint
的表格,它有兩列,名稱分別爲CusTomerID
和Point
,我想提取最高點SUM
的人。這是我的SQL查詢,它運行正常。但我需要在EF6.3中使用LambdaExpressions
或Linq
查詢執行它。將MSSQL查詢轉換爲Lambda表達式或LINQ。分組加總和排序
SELECT SUM(Point) AS POINTS, CustomerID FROM CustomerPoint AS POINTS GROUP BY CustomerID ORDER BY POINTS
謝謝你的幫忙!