Question
Adding data to SQL 2000 table
I have two SQL 2000 tables below.
T:Employees
EmpID
Fname
Lname
...
T:Security
SecurityID
Fname
Lname
Gnumb
...
I want to add "Gnumb" data to the Employee table. What is the smartest way to do this? I was thinking of querying the Employee table and for each record check to see if there was a Gnumber if not then query the Security table matching first and last name - if match, then update the Employee table with the Gnumb. But now I'm wondering if there is a better way. Also, no doubt some of the names will be mispelled between the two tables.Thank you.
T:Employees
EmpID
Fname
Lname
...
T:Security
SecurityID
Fname
Lname
Gnumb
...
I want to add "Gnumb" data to the Employee table. What is the smartest way to do this? I was thinking of querying the Employee table and for each record check to see if there was a Gnumber if not then query the Security table matching first and last name - if match, then update the Employee table with the Gnumb. But now I'm wondering if there is a better way. Also, no doubt some of the names will be mispelled between the two tables.Thank you.
