Address ActiveRecord::StatementInvalid: OCIError: ORA-00979
Merge pull request #9650 from yahonda/group_by_oracle

Address ActiveRecord::StatementInvalid: OCIError: ORA-00979