Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

MSUM - use column name for query width - response (1) by Qaisar Aftab Kiani

$
0
0

I doubt you can use the column name instead of the width.
However, the use of MSUM is discouraged in Teradata, and you should prefer to use SUM window function...

SUM(SAL) OVER(ORDER BY PDAY ROWS 2 PRECEDING)

 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>