Hi @vsr1,
I have another query which is giving me hard times:
I have multiple documents of the format:
{
“gm”:[
“1-1-2”,
“1-10-1”,
“1-12-2”,
“1-2-2”,
“1-3-2”,
“1-4-3”,
“1-5-2”,
“1-6-3”,
“1-7-3”,
“1-8-2”,
“1-9-1”,
“2-1-16”,
“2-1-18”,
“2-1-20”,
“2-1-9”,
“2-2-11”,
“2-2-12”,
“2-2-13”,
“2-2-14”,
“2-2-15”,
“2-2-16”,
“2-2-17”,
“2-2-46”,
“2-2-47”,
“2-2-53”,
“2-2-58”,
“2-2-70”,
“2-2-84”,
“3-1-18”,
“3-1-21”,
“4-1-1”,
“4-1-10”,
“4-1-11”,
“4-1-18”,
“4-1-2”,
“4-1-3”,
“4-2-13”,
“4-2-15”,
“4-2-16”,
“4-2-3”,
“4-2-8”,
“4-3-8”,
“4-4-7”,
“4-4-8”,
“4-4-9”,
“4-5-9”,
“4-6-8”
],
“type”:“app”
}
and I would like to do a query in which I need to do some combinations of “gm” values
something like
gm contains ANY of( “4-3-8” ,“4-5-9” ) and contains ALL of (“2-2-46” , “2-2-14”)
I know how to searching for one value but not how to have ANY and ALL :
select * from `default` a where a.type = 'app'
AND ANY t IN a.gm SATISFIES t = "4-3-8" END
I could not find any examples with something similar with what I need