Field name from ID on table 1 but name on other table
问题 This is a Firebird database. First Table Contacts Company_ID - job_title Second Table Client_id - Co_name In contacts, I want to the job_title field to contain the co_name. client_id and company_id are the same. Co_name correspond to company_id as well as client_id. this: UPDATE Contacts SET Contacts.Job_title = Clients.co_name where company_id in ( select client_id from clients JOIN Contacts c ON Client_id=company_id where record_status='A') gives me an error as cannot find (clients.co_name)