Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Cast from CHAR(20) to SMALLINT - forum topic by SCHINN

$
0
0

Hello Friends.
I am trying to convert a column havign CHAR(20) to SMALLINT and getting the below error....
I have the below distinct values....as char(20).
this query Cast(cast(red_Cd as CHAR(3)) AS SMALLINT) and getting this error.
Bad character in date or format..you help is appreciated..thanks...
 

?

-1

100

101

102

104

106

110

111

112

119

204

205

211

300

302

303

304

306

307

309

310

311

313

315

316

500

 

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>