I have a table, where field1 and field2 as shown below.
field1 field2x 'ab'x 'bc'y 'cs'y 'hg'y 'sk'y 'kj'
now i have to select a,b where a in (field2 of x) and b in (field2 of y)