I'm new to oracle and having a problem with one of my SQL Queries.
There are 2 Users: User1
and User2
:
Tab1 Tab2 -------- -------- EmpNo EmpNo EmpName EmpName ContactNo Salary Location
User2 has all privileges in User1.Tab1, and there is no foreign key relationship between the two tables.
The Problem:
I wanted to add a column in tab2 "NameDesignation
" And I wanted to insert the value in this column after checking the following condition:
WHEN User1.Tab1.EmpNo = User2.Tab2.EmpNo THEN
INSERT INTO Tab2 VALUES (&designation)
I really have no idea how to do this, and was hoping for a little help. Any thoughts?