I have 2 tables with the following structure :
Table 1: { table1_ID character varying(50), table2_ID bigint, resId character varying(50) } Table 2: {