Actually I am working with Couchbase N1Ql Query for retrieving data from db which has calculation in it
a sample similar model of my query is below:
SELECT 2+1 AS Greeting from something where Greeting>1;
The Error I'm getting is :
Ambiguous reference to field Greeting.
But if I modify This like this:
SELECT 2+1 AS Greeting from something where 2+1>1
this is working, but this one is not good solution as it involves a lot of computations. Can any one help me out in optimizing this query?