Hi Team I'm wanting to build an update query based on the below criteria:
Table 01 - Cost Centres
cost_centre
C0123AA
C0123AB...
C0987AA
C0987AB...
Table 02 - Conversions
store | new_store
0123 | 1234
0987 | 9876
Where all records in table 01 will be updated if they have a matching record in table 02. Eg the query should transform the C0123AA record to C1234AA. Any help would be appreciated as it's fair to say this has been doing my head in...
Thanks!
Table 01 - Cost Centres
cost_centre
C0123AA
C0123AB...
C0987AA
C0987AB...
Table 02 - Conversions
store | new_store
0123 | 1234
0987 | 9876
Where all records in table 01 will be updated if they have a matching record in table 02. Eg the query should transform the C0123AA record to C1234AA. Any help would be appreciated as it's fair to say this has been doing my head in...
Thanks!