Mar 4, 2002 #1 GUMDO Programmer Joined Jan 17, 2002 Messages 4 Location 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 Joined Jul 21, 2001 Messages 601 Location US Hi, add .5 to the result before the cast? Upvote 0 Downvote
Apr 10, 2002 1 #3 TheTeradataKid Programmer Joined May 1, 2001 Messages 8 Location 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