B
Brad Pears
How would the SQL statement be coded for the following...
I want to update the "Code" column in table2 (shown below) to the ID value
found in table1 where field "optcode" in table 2 matches field optcode in
table 1...
(then I will eliminate the optcode field altogether from my db design)
Here is the example....
Table 1 (master)
ID OptCode
1 test
2 test2
3 test3
Table2 (Options)
ID OptCode Code
1 test
2 test2
3 test3
4 test3
Result after appropriate SQL update runs...
Table2
ID OptCode Code
1 test 1
2 test2 2
3 test3 3
4 test3 3
Thanks!
Brad
I want to update the "Code" column in table2 (shown below) to the ID value
found in table1 where field "optcode" in table 2 matches field optcode in
table 1...
(then I will eliminate the optcode field altogether from my db design)
Here is the example....
Table 1 (master)
ID OptCode
1 test
2 test2
3 test3
Table2 (Options)
ID OptCode Code
1 test
2 test2
3 test3
4 test3
Result after appropriate SQL update runs...
Table2
ID OptCode Code
1 test 1
2 test2 2
3 test3 3
4 test3 3
Thanks!
Brad