I have a json input where I have value of data between square brackets in column A
I need to split the contents of column A into separate columns
Input:
I need to split that data into
SPLIT is not available. Pls advice if I can achieve this using cross apply? substring? charindex? Column A can square brackets values might change, some rows might have 4,some have 2 etc.


Input data does not seem to be of Json. If your data is comma separated array values, you can use cross apply and convert each value into a separate row. Then you can use, substring function to convert them into separate columns.
Query:
Input data:
Output data: