• Thanks for this, I didn't know about fn_split or the CROSS APPLY.