0

I have a table called my_table in myDB SQL Server database.

my_table contains:

foo bar
baz-12:1234:bom bim
baz-34:5678:bom bim

What select statement would return a column containing the third set of values '1234' in row 1 and '5678' in row 2?

I am using SQL Server 12.

This doesn't work:

SELECT STRING_SPLIT(foo) 
FROM my_table
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
cristiandatum
  • 329
  • 2
  • 10

0 Answers0