Question : DB2 Equivalent of CINT & REPLACE

I originally wrote this query in Access...

CInt(Replace(LOWES_T572_SHP_LCT_GRP.T162_CGY_SHT_NME,'DC',''))

The field returns a DC name like 'DC1234" and I use the CInt and Replace to get rid of DC and convert to an integer.

I'm turning this into a pass-through query and need to replace CInt and Replace with the equivalent syntax for DB2 SQL.

Answer : DB2 Equivalent of CINT & REPLACE

try

Int(Replace(LOWES_T572_SHP_LCT_GRP.T162_CGY_SHT_NME,'DC',''))
Random Solutions  
 
programming4us programming4us