Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 38722

Forum Post: RE: T-SQL: Displaying Data from a Previous Row

$
0
0
Hi Again, Roger: I think that I fixed this! I simply added a "qualifier" or whatever to the clause saying a.YEAR1 = b.YEAR1 as follows: CROSS APPLY (SELECT SUM(netchange) AS NetChange FROM allbalances b WHERE a.ACTINDX=b.ACTINDX AND b.PERIODDT <= a.PERIODDT and a.YEAR1=b.YEAR1) b This allowed for the "reset" to happen, for each new year. So, I think that I'm finally all set. Thanks, again! John

Viewing all articles
Browse latest Browse all 38722

Trending Articles



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