Suppose I have 2 tables
Table1
ID Path
-- ----
1 PathA
2 PathB
3 PathC
4 PathD
Table2
ID Path Table1ID
-- ---- --------
23 PathA 1
24 PathX 2
25 PathC 3
26 PathZ 4
In the above, PathX should be PathB and PathZ should be PathD
How do I sync all the path values in Table2 with values in Table 1, the tables could be large so would like to check for all values that do not match and update them. Cheers
Using MS SQL Server 2005