Report question

Question: use the returned value of the query as a foreign key without starting a new transaction or dropping foreign key constraint