In Interbase 2009 db I have master and detail tables(Tmaster, Tdetails).
Tmaster:master_id(pk), DocSumma, DocSummaDol
Tdetails: det_id, master_id(fk), price1,p