I am trying to update data in Table: local.import_payments from Table: local.payments based on update and Inner Join queries. The query I used:
Update local.import_payments Set local.import_payments.client_id = local.payments.payment_for_client__record_id, local.import_payments.client_name = local.payments.payment_for_client__company_name, local.import_payments.customer_id = local.payments.customer__record_id, local.import_payments.customer_name = local.payment_from_customer, local.import_payments.payment_id = local.payments.payment_id From local.import_payments Inner Join local.payments Where local.payments.copy_to_imported_payments = 'true' The client_id, client_name, customer_id, customer_name in the local.import_payments need to get updated with the values from the table local.payments based on the condition that the field copy_to_imported_payments is checked.
I am getting a syntax error while executing the query. I tried a couple of things, but they did not work. Can anyone look over the queries and let me know where the issue is