Hello
I have 2 tables:
table1
CODE | PRICE
1234 | 20
234 | 10
table2
CODE | PRICE
1234a |
1234b |
1234c |
234a |
234b |
234c |
234d |
WHat I need to do is, compare the string for CODE in table 1 against what
is found in table2. The relationship is always the same in that
table2.code is always what is found in table1 plus one more character. SO
I need to update table2 based on that so the result is:
1234a | 20
1234b | 20
1234c | 20
234a | 10
234b | 10
234c | 10
234d | 10
I'm kind of a n00b, but I need to use the MID function perhaps? Any help
greatly appreciated.
I have 2 tables:
table1
CODE | PRICE
1234 | 20
234 | 10
table2
CODE | PRICE
1234a |
1234b |
1234c |
234a |
234b |
234c |
234d |
WHat I need to do is, compare the string for CODE in table 1 against what
is found in table2. The relationship is always the same in that
table2.code is always what is found in table1 plus one more character. SO
I need to update table2 based on that so the result is:
1234a | 20
1234b | 20
1234c | 20
234a | 10
234b | 10
234c | 10
234d | 10
I'm kind of a n00b, but I need to use the MID function perhaps? Any help
greatly appreciated.
Comment