I have a sample delimited string mentioned below:
abc-def-ghi-jkl-mnop-qrstu-vwz-yz
I want to extract the each value from the mentioned string like abc,def etc as a separated column. Could you please help me with the MSSQL server query to extract the values from string.
We have limitation that we can only use CHARINDEX and SUBSTR.
Expected output: