I have a fairly intricate query and I am finding it difficult to create the result of updating two different tables from the same subquery in the FROM. The diff
FROM