Untitled
in eprm_join_cols_reim row the data will be like ---> reim.entity_id=tppa.product_id AND reim.op_id=tppa.op_id AND reim.bu_id=tppa.bu_id AND reim.version=tppa.version so while placing above values in dynamic query you need to replace and with , and you have to replace reim.enity_id=tppa.,reim.op_id=tppa. like that you have replace every value upto after = . in value assignment dynaicaly