I need some help with using Substring, CharIndex, PatIndex, etc. I need a query that will extract data from a string, where the data is between two quotes ("......"), but the data may not be the same length. For example
Table Name: LettersofAlphabet
This is one column called Alphabets
"LettersofAlphabet":"abcdefghi"
"LettersofAlphabet":"defghijklmnopqrs"
"LettersofAlphabet"."abcdefghijklmnopqrstuv"
For each row I need to extract the actual alphabets sitting between the quotes. The first part of the column ("LettersofAlphabet") is always the same length, but the actual alphabets are different lengths.
How do I extract the string when the data I want is different lengths? Please help
Thanks for the reply. I think I might have mislead with only part of my problem. The actual rows of the table have more data in it, so that's why I was having problems extracting the data.
Table Name: LettersofAlphabet
This is one column called Alphabets
"LettersofAlphabet":"abcdefghi":"123456789":"thisisatest"
"LettersofAlphabet":"defghijklmnopqrs":"123456789":"thisisatest"
"LettersofAlphabet"."abcdefghijklmnopqrstuv":"123456789":"thisisatest"
Does your code work the same with the change in the table. While every other piece of data is the same length, again the data that I need is not the same length. I apologize again, for not giving the full story.