Skip to content
Advertisement

Dynamic Extraction of text – SQL

I have a column with values in the following format:

how can i extract the number after ‘product’. It is simple to extract when there is one ‘product’.

Expected Result:

Advertisement

Answer

You can get away with a few REPLACE:

Results:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement