I am trying to run an update statement that changes a field based on flags in two other tables in two different schemas. This is the code I am trying - but I am getting the