title: SQL function - Split a number into part count
body: <p>I want to split a number into parts(buckets). </p>
  
  <p>For example when I split a number 13 by 4, expected output is 4 bucket (4,4,4,1)</p>
  
  <p>13 split by 4 parts -> <strong>4 (Expected output)</strong></p>
  
  <p>For example when I split a number 11 by 4, expected output is 3 bucket (4,4,3)</p>
  
  <p>11 split by 4 parts -> <strong>3 (Expected output)</strong></p>
  
  <p>For example when I split a number 3 by 4, expected output is 1 bucket
  3 split by 4 parts -> <strong>1 (Expected output)</strong></p>
  
  <p>How do I do this in SQL function</p>