Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Mon, 08 Sep 2003 @ 19:31:09 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Round 5 up (override "RoundHalfwayMagUp" set to FALSE)
From:   kzk

Dear All,

We seek suggestions for accomplishing "round 5 up" for a specific project despite having RoundHalfwayMagUp set to FALSE (i.e., banker's rounding, or "round to the nearest even") for our entire data warehouse. Changing that setting to TRUE would require regression testing everything we've got running presently (not a feasible option). We are doing division in an ETL process and are storing the answer as decimal(18.4); we need the 'round 5 up' to apply to the answer we store.


+ the answer 3956.00005 needs to round to 3956.0001(presently rounds to 395.6000)

+ the answer 10061.00045 needs to round to 10061.0005 (presently rounds to 1006.1004)

We have V2R5.01.

Attempts to use a round function:

select cast(round (10061.00045 as decimal(18,4))/10)

gives the error:

Syntax error, expected something like '||' between the word 'round' and '('.


Gap Inc. Data Warehouse QA

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