split function comma separator four columns SQL Server
问题 Team, i have another scenario, i need to split 4 columns and also 8 columns split, i changed the beginning code declare @numCols int = 4 i tried to change the final join statement, not able to achieve, Can you help on this. i could not able to join the single join statement at the end of the function declare @String varchar(max) set @String='sunday,9,meals,EYR,sunday,9,meals,USD,monday,9,meals,USD,friday,9,meals,USD' begin declare @numCols int = 4 declare @itr int = 0 declare @SplittedValues