title: Custom rounding in SQL
body: <p>How can I set rules for custom rounding in SQL?</p>
  <p>I need set this rules:</p>
  <pre><code>if second number after decimal is 1-2   eg.  10,02 - round it to 0  result 10,00
  if second number after decimal is 3-7   eg.  10,13 - round it to 5  result 10,15
  if second number after decimal is 8-9   eg.  10,28 - round it to bigger number  result 10,3
  </code></pre>
  <p>Can someone help me how to do this? Round function works from 0-5 and above 5 but how to do &quot;custom rounding function&quot; based on this rules?</p>
  <p>Thanks in advance.</p>