0
如何將此SQL查詢轉換爲Entity Framework v4.0查詢?如何將此SQL查詢轉換爲Entity Framework v4.0查詢?
WITH Sales_CTE (Name, Count1) AS
(
SELECT TOP 1000000
Name, COUNT(Name)
FROM
Customers
WHERE
subscriptionState != 0
GROUP BY
Name
HAVING
COUNT(Name) >= 0
ORDER BY
COUNT(Name)
)
SELECT
COUNT(count1), Count1
FROM
Sales_CTE
GROUP BY
count1