上面的还有问题,这个测试过了
SELECT TOP 10 KS_Product.ID, KS_Product.Title
FROM KS_OrderItem INNER JOIN KS_Product ON KS_OrderItem.ProID = KS_Product.ID
GROUP BY KS_OrderItem.ProID, KS_Product.ID, KS_Product.Title
HAVING (((Count(KS_OrderItem.ProID))>=1))
ORDER BY Count(KS_OrderItem.ProID) DESC;