I’ve got a database with one field that contains a comma delimited list that I’d like to normalize. The field would look something like this…
16-BIT, 20 MHz, MICROPROCESSOR, PQFP100
It will not always have the same number of commas delimited items, however the only item I care about, and the one I want to pull out and normalize is always going to be the last one, in the case above ‘PQFP100’.
I think I understand the sql to get the column out and into another table, but I don’t know how to select only the PQFP100 part of it. Here’s what I have so far…
insert ignore into part_pkg (pkg_name)
select part_desc
from part_raw
group by pkg_name;
I think I need something on the ‘from part_raw’ part but don’t even know where to start 🙂
Hopefully this is clear enough. Thanks
if you select this:
you will get this:
So the insert statement must be something like this: