Re: [GENERAL] using Replace funcion in postgresql

2013-09-17 Thread karinos57
just as FYI the database i am using is Netezza so my data type is CHARACTER VARYING(6). The error i am getting is 'Buffer Overflow'. So the funny thing is when i change this '' to this ' ' then the query runs but it is putting a blank space between the values like this 88 97 but i get an error wh

[GENERAL] remove everything before the period

2013-09-17 Thread karinos57
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 se

[GENERAL] using Replace funcion in postgresql

2013-09-16 Thread karinos57
SELECT Volume, REPLACE(Volume,'.','') FROM MyTable The data in my table looks like this: 88.97 448.58 and etc i want to show like this with out the period: 8897 44858 I have tried to use different ways but still getting the error i hope someone out there can help me. How can i ac