I need to update the test_test column with "testconsent_id"the id of the table test_groupedconsent,where the patient_idin test_testand patient_idin tables correspond test_groupedconsentand also create_date in both matches of the table. I am using the following query, but getting an error -"near "as": syntax error".
what is wrong with the request?
Update test_test as Tinner join (select id,patient_id,creation_date from test_groupedconsent) as Aon A.patient_id = T.patient_id and A.creation_date = T.creation_dateset T.testconsent_id = A.id;
source
share