Sample Header Ad - 728x90

Select All Instances of Substring in a String

0 votes
1 answer
1174 views
I have a varchar(max) column that holds a JSON request string. I need a SQL statement for a report that will select all of the instances of that substring. More specifically I need to grab the LoanId Value from that substring entry pulling a result set that contains a row for each LoanId. Any help would be greatly appreciated. A considerably abbreviated JSON string containing the stuff I'm looking for. [ {"loanId":"1111111111","someotherValue":7}, {"loanId":"2222222222","someotherValue":4}, {"loanId":"3333333333","someotherValue":5}, ]
Asked by Tim (155 rep)
Feb 22, 2019, 08:44 PM
Last activity: Jul 12, 2020, 07:03 AM