For those who use Valentina Links: we have to improve LINK RECORDS command.
When you add records to T1 and T2, to link them you need RecIDs of that last added records.
Up to now you could write this set of SQL commands to do this task:
INSERT INTO T1(f1,f2,f3) VALUES(v1,v2,v3);
SET @last_T1 = last_recid_of_table( 'T1' );
INSERT INTO T2(f1,f2,f3) VALUES(v11,v12,v13);
SET @last_T2 = last_recid_of_table( 'T2' );
LINK RECORD(@last_T1) OF T1 WITH RECORD(@last_T2) OF T2;
Now you can do this much simpler:
INSERT INTO T1(f1,f2,f3) VALUES(v1,v2,v3);
INSERT INTO T2(f1,f2,f3) VALUES(v11,v12,v13);
LINK RECORD(LAST) OF T1 WITH RECORD(LAST) OF T2;