title: Convert a value based on range
body: <p>I need to convert a number to another value based on a range:</p>
  
  <p>ie: </p>
  
  <pre>
  7 = "A"
  106 = "I"
  </pre>
  
  <p>I have a range like this:</p>
  
  <pre>
  from to     return-val
  1    17     A
  17   35     B
  35   38     C
  38   56     D
  56   72     E
  72   88     F
  88   98     G
  98   104    H
  104  115    I
  115  120    J
  120  123    K
  123  129    L
  129  infinity   M
  </pre>
  
  <p>The values are fixed and do not change.</p>
  
  <p>I was thinking a lookup table would be required, but is there a way it could be done with a function on an analytics function inside of oracle?</p>