Quantcast
Viewing all articles
Browse latest Browse all 38722

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

Hi Alicia: We're on SQL 2008. So, the "lag" function does not work. Is there a substitute? Also, SQL is giving me a syntax error "near order", for the clause below. That may also be because we're on SQL 2008. Any ideas? order by isnull(g.ACTINDX,p.ACTINDX), p.YEAR1, p.PERIODID) as ClosingBalance 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>