I have two tables and one is parent table and second one is child table both tables has transactions but where as some transactions will take place in parent table and some in c