title: How can you find the number of occurrences of a particular character in a string using sql?
body: <p>How can you find the number of occurrences of a particular character in a string using sql?</p>
  
  <p>Example: I want to find the number of times the letter ‘d’ appears in this string.</p>
  
  <pre><code>declare @string varchar(100)
  select @string = 'sfdasadhfasjfdlsajflsadsadsdadsa'
  </code></pre>