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

Is this the casting error? - forum topic by prateek.saxena

$
0
0

Hi,
I am trying to write some SAS codes in Teradata. There is one condition in my code :
avg_depth>0
So, the thing is when I am removing this condition from SAS and Teradata, the results are exact match to the decimal places, but after putting this condition I am getting differences between the result.
 
PS: avg_depth=sum(x)/sum(y)
I have casted sum(x) and sum(y) to decimal(18,6)

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>