I understand that people have asked this question in other ways before but i'm not interested in pushing a single string though a variable.
I have a column containing data like: QWERTYUIOP-1,QWERTYUIOP-XL, ASDFG-2, HGJFK-SM. The column is called product. I need to be able to extract text after the '-' so i can store it as size in another column. for this instance lets call the table products.
How can you do this in SQL Server? It's pretty simple in postgreSQL with split_part but there doesnt seem to be a similar function other than string_split, and that only works for tables. When i try to use it against a column it says string_split doesn't exists.
Can someone help me out with this please?