Is it possible to update a value in a table based on a value in another table in Oracle?
I am trying to accomplish something like this(I know that this is not a proper UPDATE statement):
UPDATE table1
SET table1.flag = 1
FROM table1 t1
INNER JOIN table2 t2
ON t1.emp_id = t2.emp_id
INNER JOIN table3 t3
ON t2.company = t3.company
WHERE t1.emp_id = '5632'
AND l2.company = '83CP'
AND t1.code = 'LIEU'