I have three fields that form a unique composite key on a table.
I want to pass in 3 different arrays, where the index matches.
custIds= [0,1,2]
custLetters = [A,B,C]
products = ["Cheese","lemons","Aubergine"]
is there one sql statement that will return all three rows (assuming they exists),
just combining via in
won't work to due to "false positives" :
select * from mytable
where custId in (custIds)
and custLetters in (custLetters)
and product in (products);
database oracle, but via hibernate hql, so ansi preferred if possible ?