Avatar of Erik Hauser
Erik Hauser
Flag for United States of America asked on

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

Avatar of undefined
Last Comment
Erik Hauser

8/22/2022 - Mon
slightwv (䄆 Netminder)

>>replace function with no success. Example: replace(DB_COLUMN, '.', '')

What did it return?  Should work.

Try this:
db_column*100
Sean Stuber

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)

>>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

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

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!