![]() |
|
Archives of the TeradataForumMessage Posted: Tue, 22 Feb 2005 @ 14:19:18 GMT
Try using the MDIFF (x,w,y) or SUM (preferred) functions:
MDIFF (value_expression, width, sort_expression_list)
or
X - SUM( X ) over (order by Y rows between W preceding and W preceding)
Wayne Schachtel
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||