I've a table column that stores the two digit uppercase state and city codes (example: FL for Florida; KC for Kansas City). I want to run a SQL query (not function or procedure) to extract these uppercase codes from the text.
Example: Here are 3 records showing values of the desciption column:
1. KC manufacutring unit provide LCDAD equipments.
2. All the tests are performed at FL unit.
3. The biggest TIN35 plant is in CA.
Here is the output I am trying to get:
State/City Description
---------- ---------------------------------------
KC KC manufacutring unit provide LCDAD equipments.
FL All the tests are performed at FL unit.
CA The biggest TIN35 plant is in CA.
I would greatly appreciate your time and input.
Thanks,
AN
Example: Here are 3 records showing values of the desciption column:
1. KC manufacutring unit provide LCDAD equipments.
2. All the tests are performed at FL unit.
3. The biggest TIN35 plant is in CA.
Here is the output I am trying to get:
State/City Description
---------- ---------------------------------------
KC KC manufacutring unit provide LCDAD equipments.
FL All the tests are performed at FL unit.
CA The biggest TIN35 plant is in CA.
I would greatly appreciate your time and input.
Thanks,
AN
Comment