Skip to content
Advertisement

Using regex in sql to define new variable

I need to derive the “new” column from the “old” column using sql and regex if possible. I’m using Oracle SQL Developer. If I were using regex in R or Python, I would use this recipe to get the “new” column:

Thanks.

Use this:

Advertisement

Answer

Here’s one option:

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