Remove a character from a number

Using Netezza,

I am trying to remove a '.' from a number.

Here is what I have:


What I want returned is:


I have already tried the replace function with no success. Example: replace(DB_COLUMN, '.', '')

Can anyone help?
Erik HauserBusiness Intelligence DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
>>replace function with no success. Example: replace(DB_COLUMN, '.', '')

What did it return?  Should work.

Try this:
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) Commented:
>>replace isn't part of netezza's syntax by default

I missed the Netezza piece.  Was only going by Oracle topic area.
Since it's only a single character, you could try the TRANSLATE function
I believe (haven't tested) this works the same in Netezza and Oracle


the "a" is just a dummy character to act as a base for the translation mapping
the key part is to have the "." map to nothing.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Erik HauserBusiness Intelligence DeveloperAuthor Commented:
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!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.