The above query results in an error
SELECT MAX(CreatedDate),OldValue,NewValue
FROM LeadHistory
GROUP BY OldValue,NewValue
The error :
ERROR at Row:1:Column:69 field 'OldValue' can not be grouped in a query call
Can someone explain this error ?