I have two table as follows:
active_employee
, with the columns id, email_id, job, location and project_id
project_relation
, with the columns id, email_id and project_id.
My problem is that I want to update the project_id column of project_relation table with the condition that if the value for project_id in both the tables are not same, then it has to fetch the value from "active_employee" table and update the project_relation table for corresponding email_id.
Help me how to do this!