Mar 4, 2002 #1 GUMDO Programmer Jan 17, 2002 4 US Hi, Any ideas on how to RoundUp in Teradata? I'm having a hard time since I can't even use Round and Cast only rounds down. Ideas would be greatly appreciated.
Hi, Any ideas on how to RoundUp in Teradata? I'm having a hard time since I can't even use Round and Cast only rounds down. Ideas would be greatly appreciated.
Mar 4, 2002 1 #2 tdatgod Programmer Jul 21, 2001 601 US Hi, add .5 to the result before the cast? Upvote 0 Downvote
Apr 10, 2002 1 #3 TheTeradataKid Programmer May 1, 2001 8 US -- takes a number and rounds to the nearest .05 select (cast ( X / .5 as decimal (5,1))) * .5 X = variable Upvote 0 Downvote
-- takes a number and rounds to the nearest .05 select (cast ( X / .5 as decimal (5,1))) * .5 X = variable