Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 28 Sep 2004 @ 14:44:06 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Loss of decimal precision values
 
From:   naresh.x.mudunuru

You may want to try some thing like the simple example below:

      BTEQ -- Enter your DBC/SQL request or BTEQ command:
     select 27/(28 (decimal(16,4))) * 100;

     select 27/(28 (decimal(16,4))) * 100;

      *** Query completed. One row found. One column returned.
      *** Total elapsed time was 1 second.

            ((27/28)*100)
     --------------------
                  96.4300

      BTEQ -- Enter your DBC/SQL request or BTEQ command:
     select 27/(28 (decimal(16,4))) * 100 (decimal (16,2));

     select 27/(28 (decimal(16,4))) * 100 (decimal (16,2));

      *** Query completed. One row found. One column returned.
      *** Total elapsed time was 1 second.

          ((27/28)*100)
     ------------------
                  96.43


     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023