Hello,
I have a query that don't exactly manage to get right:
A class contains a property with:
type - embedded list
linked type - integer.
something like V_Foo { years: [2014, 2015,2016] }
a { years: [2014] }
b { years: [2014, 2015] }
c { years: [2014, 2015, 2016] }
I wish to do a select where all the years I get as parameters are inside my embedded list:
like
select from V_Foo where years contains all [2015] -> b,c
select from V_Foo where years contains all [2014, 2015] -> b,c
select from V_Foo where years contains all [2014, 2015, 2016] -> c
the command containsall, apparently, isn't what I'm looking for.
the command contains used as 'contains [2014, 2015]' doesn't give me anything
the command contains used as 'contains 2014' works, but I want multiple values
the command 'where fiscalYears in [2014,2015,2016]' gives me ALL the results and I want just c
I don't want to use AND* because I have a variable no. of parameters. *( like 'years contains 2014 and years contains 2015' )
Any ideas?
Thanks,
Mihai