title: Select data between dashes from a table
body: <p>I hope somebody has any idea how to get data from a table using a query but just the characters between the dashes " - ". I cant use substr because is limited to a few characters. I have a few hours trying to figure out but i cant. Please help.</p>
  
  <pre><code>      Data
  +-------------+
  |   MYTABLE   |
  +-------------+
  |  PSL-9-1    |
  |  PSL-9-2    |
  |  PSL-10-1   |
  |  PSL-10-2   |
  |  PSL-500-1  |
  |  PSL-8600-1 |
  +-------------+
  
  Desired output:
  
  +-------------+
  |   MYTABLE   |
  +-------------+
  |     9       |
  |     9       |
  |     10      |
  |     10      |
  |     500     |
  |     8600    |
  +-------------+
  </code></pre>