Increment the count when two indexes are not equal

query
n1ql

#1

Hi All,

I want to increment the count if two attributes from two buckets are not equal using N1QL.

Kindly share any hints or thoughts on this.

Thanks in advance,
Niveda S


#2

You need to provide more details. A full example.


#3

@geraldss
I have Bucket A with some attributes say name, age, date
and in Bucket B, I have some other attributes say, relation, and date.

Now I want a count to be incremented if the bucket A’s date and bucket B’s date are not equal.


#4

A bucket can contain many documents. What if bucket A and bucket B both contain many documents. How would you rephrase your question.