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
↧