Closed paustint closed 4 years ago
Salesforce supports aggregate functions in the order by, but parsing fails. Example query: SELECT ProductCode FROM Product2 GROUP BY ProductCode HAVING COUNT(Id) > 1 ORDER BY COUNT(Id) DESC
SELECT ProductCode FROM Product2 GROUP BY ProductCode HAVING COUNT(Id) > 1 ORDER BY COUNT(Id) DESC
Description
Salesforce supports aggregate functions in the order by, but parsing fails. Example query:
SELECT ProductCode FROM Product2 GROUP BY ProductCode HAVING COUNT(Id) > 1 ORDER BY COUNT(Id) DESC