I have 3 tables that I am currently working with. USER
, WORKSTATION
and USER_WORKSTATION
(basically a temp table).
My
USER
table consists of user_id
and user_name
,
WORKSTATION
consists of workstation_id
, workstation_name
and user_id
.
As of right now, the user_id
column is empty for all workstations and that is my problem.
I have created a table (imported from excel) USER_WORKSTATION
. It consists of only user_name
s and their corresponding workstation(s). Is there someway that I can write an update query that will update the WORKSTATION
table with the user_id
found in the USER
table based on the user_name
and workstation_name
combination in the USER_WORKSTATION
table? I do not have any constraints currently set up and I'm using Oracle.