title: get everything before second dot sql
body: <p>I would like to obtain everything in a column (column name: test) before the second decimal/dot. The column is in string format. </p>
  
  <p>Example: Data in column test</p>
  
  <pre><code> a bc.de.fg
   k.l.o.p
  </code></pre>
  
  <p>Desired Output</p>
  
  <pre><code>a bc.de
  k.l
  </code></pre>