Hi,
I am running the below queries on Couchbase query console, and different result for the same where clause -
1.
SELECT COUNT(1) AS itemsNumber
FROM bucket
AS f
WHERE LOWER(f.sai.fid) = “if_55”
AND ( EVERY x IN f.sai.directT
SATISFIES LOWER(x.tid
) != “it_28” END
OR f.sai.directT IS MISSING )
result - 20
SELECT * FROM bucket
AS f
WHERE LOWER(f.sai.fid) = “if_55”
AND ( EVERY x IN f.sai.directT
SATISFIES LOWER(x.tid
) != “it_28” END
OR f.sai.directT IS MISSING )
result - 5 documnets
SELECT * FROM bucket
AS f
WHERE LOWER(f.sai.fid) = “if_55”
result - 20 documnets
in queries 1 and 2, where clause is same but results are different.
I tried other parameters in count but result is same in all case. Please suggest what is missed in query formation.
Thank You.