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

SQL Query Tunning - response (8) by Jessy Mahesh Kothapalli

$
0
0
Dear All,            If we fire below queries on SQLassistant13.10/bteq, it will through mentioned results SELECT 10 /2  --5 SELECT 2/10 -- (Hope this should have given 0.2 instead of giving 0)     If we do casting it will be given proper values   SELECT CAST(2 AS DECIMAL(10,2)) / CAST(10 AS DECIMAL(10,2)) ;    --0.2   Please let me know the diff ? when i was working with TD12.00 I havn't faced this kind of issues.          

Viewing all articles
Browse latest Browse all 14773

Trending Articles



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