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

Division of two integers - forum topic by bikky6

$
0
0

Hi
Below things wonder me.When I perform
SEL (100.00/210.00)  GIVES 0.48
But if perform
SEL (29781215.00/29894915.00)  gives 1.00 instead of  0.99
Then i did in the below way.It worked
SEL 100* CAST(29781215 AS DECIMAL(10,2))/29894915  gives 99.62
The only thing is the first two queries.
 
Regards
KVB
 

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>