Archives of the TeradataForum
Message Posted: Thu, 25 Apr 2013 @ 21:07:57 GMT
You're not changing the data type returned by ROW_NUMBER(). You're only changing it after it's been returned, so the integer still overflows.
Try SUM(CAST 1 AS DECIMAL(18,0)) OVER (whatever) instead.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 23 Jun 2019|