Skip to content
Advertisement

Retrieving row and column number from within a string in sql

I am trying retrieve row and column number for following strings. The numbers that follow the R are the row no and numbers that follow the C are column numbers. Also as you can see some of them are 4 digits and some of them are 3 digits. How do I use a single function to retrieve the row and column number respectively.

I started by using the patindex but not sure how to determine based on it. Could somebody help

Advertisement

Answer

This forum isn’t for solving your programming tasks. But for the fun of it, I’ve done it for the row number:

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