|  |  | 
|  |  | Archives of the TeradataForumMessage Posted: Fri, 25 Feb 2011 @ 15:46:09 GMT
 
 Attila - try the following. The precision is determined by the precision of the numeric values prior to the CAST. 
     select
     cast( (3995852 * 100.000 / 12274677) as Decimal(6,3) ) as Data_Pct
Johannes de Wet 
 | ||||||||||||||||||||||||||||||||||||||||||||||
|  | ||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | ||||||||||||||||||||||||||||||||||||||||||||||||
|   | ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||