About
Pricing
Community
Teams
Start Free Trial
Log in
Erik Hauser
asked on
4/22/2015
Remove a character from a number
Using Netezza,
I am trying to remove a '.' from a number.
Here is what I have:
45.01
What I want returned is:
4501
I have already tried the replace function with no success. Example: replace(DB_COLUMN, '.', '')
Can anyone help?
Databases
5
1
Last Comment
Erik Hauser
8/22/2022 - Mon
slightwv (䄆 Netminder)
4/22/2015
>>replace function with no success. Example: replace(DB_COLUMN, '.', '')
What did it return? Should work.
Try this:
db_column*100
Sean Stuber
4/22/2015
replace isn't part of netezza's syntax by default
you'll need the sql extention toolkit which can be downloaded from IBM's support site
slightwv (䄆 Netminder)
4/22/2015
>>replace isn't part of netezza's syntax by default
I missed the Netezza piece. Was only going by Oracle topic area.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
Sean Stuber
4/22/2015
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Erik Hauser
4/22/2015
ASKER
Translate worked. Thank you!
My apologies for posting in the wrong area as there is no topic area for Netezza and Netezza somewhat closely mirrors Oracle.
Problem solved!
What did it return? Should work.
Try this:
db_column*100