Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Numeric Overflow error in teredata - response (4) by ulrich

$
0
0

check the data types of 
data_table_uplink 
data_table_downlink
data_table_UPLINK
data_table_DOWNLINK
data_table__DURATION
It looks like the sums are exceding the maximum values for at least one of the colums.
Lets assume they are integers
in this case 
  ,sum(cast(data_table_uplink as decimal(18,0)))    as total_data_table_uplink
  ,sum(cast(data_table_downlink as decimal(18,0)))  as total_data_table_downlink
  ,sum(cast(data_table_UPLINK as decimal(18,0)))     as total_data_table__UPLINK
  ,sum(cast(data_table_DOWNLINK as decimal(18,0)))   as total_data_table__DOWNLINK
  ,sum(cast(data_table__DURATION as decimal(18,0)))      as total_data_table__DURATION
is likely to work.
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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