I am trying something like this:
result = db.GqlQuery("SELECT * FROM myDataMode COUNT(Employee) GROUP BY(Department) WHERE Salary > :1"10000)
And I am getting error :
BadQueryError: Parse Error: Expected no additional symbols at symbol count
Can any one please help me.
Since GQL does not have
COUNT
andGROUP BY
function. so I designed a solution for it:Make an Array which will have unique Departments from the result :
GQL isn't SQL. It doesn't have
COUNT()
orGROUP BY()
. See the GQL reference for more information.