Updated below
dynamic__9888500000002894.product_id = dynamic__9888500000002907.text_1
and
dynamic__9888500000002894.code_1 = dynamic__9888500000002907.text_2
or
dynamic__9888500000002894.code_2 = dynamic__9888500000002907.text_3
and
dynamic__9888500000002894.code_2 not in ('AA')
Hope this helps if yes then accept and vote the answer otherwise revert back with your queries.
--RDBurmon Sr.Software Engineer