Microsoft
Software
Hardware
Network
Question : DB2 Equivalent of CINT & REPLACE
I originally wrote this query in Access...
CInt(Replace(LOWES_T572_SH
P_LCT_GRP.
T162_CGY_S
HT_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.T
162_CGY_SH
T_NME,'DC'
,''))
Random Solutions
hide this column? <asp:TemplateField
Set which browser opens and responds to "mailto:" links
Windows 2003 SBS locks up during full scan of Malwarebytes.
SBS 2008 Folder Redirection
How to I stop Excel from copying data across all sheets?
Port Configurations on Pix 506e
Upgrade Path Win 2003 Std. (32-bit) Environ. to Upgrade to Win 2008 R2 64-Bit
Parental control for the internet
How to Get Grouping Formula to Display Same Record More than Once When Meets Criterion
MySQL Query Error: Column count doesn't match value count at row 1