remove everything before the period

From: karinos57 <karinos57(at)hotmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: remove everything before the period
Date: 2013-09-17 02:21:37
Message-ID: 1379384497904-5771179.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I am trying to remove everything before the period in other words i only
want to show the values that starts from the period. For instance
897.78 ==> 78
74.25 ==> 25
3657.256 ==> 256

well the code below only shows everything before the period but i want to
show everything after the period

select volume, substring(volume from 1 for position('.' in volume) - 1) as
column
from MyTable ;

--
View this message in context: http://postgresql.1045698.n5.nabble.com/remove-everything-before-the-period-tp5771179.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2013-09-17 04:38:35 Re: Why does this array query fail?
Previous Message Ken Tanzer 2013-09-17 02:19:20 Re: Why does this array query fail?