title: Split string using comma and multi conditions in MSSQL
body: <p>I have complex split issue for MSSQL Query as the below:</p>
  
  <pre><code>Dani,george,michael - USA,Uk,CA
  </code></pre>
  
  <p>And I want to get the below output:</p>
  
  <p><a href="https://i.stack.imgur.com/1puuf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1puuf.png" alt="enter image description here"></a></p>
  
  <p>Can anyone give me a hint, if this possible?</p>