I know nothing about sql programming but this has been dropped into my plate:
Table 1:
serial_number model_number
123456
225588
663399
447788
Table 2:
Model_number beginning_stringOF_serial_number
E3333 447
C3333 225
rtf111 123
e3 663
Table 1 (model_number) is currently blank.
I need to use the logic in table 2 to populate the model number in table 1.
For example, (in table 2) every serial number that starts with '447' would have model_number = 'e3333'. So I need to find every instance of serial number in table 1 which starts with '447' and populate the resulting table1.model_number with 'e3333'.
This I dont know how to handle.
Could someone help please.
Thanks
Table 1:
serial_number model_number
123456
225588
663399
447788
Table 2:
Model_number beginning_stringOF_serial_number
E3333 447
C3333 225
rtf111 123
e3 663
Table 1 (model_number) is currently blank.
I need to use the logic in table 2 to populate the model number in table 1.
For example, (in table 2) every serial number that starts with '447' would have model_number = 'e3333'. So I need to find every instance of serial number in table 1 which starts with '447' and populate the resulting table1.model_number with 'e3333'.
This I dont know how to handle.
Could someone help please.
Thanks