Increment the count when two indexes are not equal

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

You need to provide more details. A full example.

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.

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