lets say i have 2 tables, how to make a query like if count id in tbl1 is same with count id in tbl2, then insert id in tbl1, otherwise, insert id in tbl2.
this is for tb