Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 10 Apr 2003 @ 14:38:23 GMT

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

Subj:   Re: Stored Proc
From:   Yonina Schuchman


Change Vdisplay1 to the following:

set vDisplay1 = select 5 /(2(decimal(4,2)));

When you divide two integers, e.g. 5/2, the result will be an integer. You must cast either the numerator or the denominator to a decimal first.

  <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: 27 Dec 2016