I am trying to get a count of my records from an Olingo ODATA (version 2) result set similar to the one below:
http://services.odata.org/OData/OData.svc/Categories/$count
The above url returns 3, and there are 3 'values' as you can see if you remove the /$count
.
I am working on local host, where this url:
localhost/odata/livingODATA/address/
returns a result set, but localhost/odata/livingODATA/address/$count
returns the error:
TEIID30088 Unrelated order by column g0.id cannot be used in a SET query, with SELECT DISTINCT, or GROUP BY
I have tried adding an order by
, nothing seems to help.