what's the best way to spilt the pipe delimited columns in SQL 2017.
Input:
declare @table table (sno int,sname varchar(200),sname1 varchar(200))
Insert into @Table(sno,sname,sname1)
Values (1,'Mark|James','Dallas|Houston')
Excepted Output:
1 Mark Dallas
1 James Houston
Thank you.