0
I have a Account Balance History table containing ACCT_ID, EFFDATE, and AMT. ACCT_ID and EFFDATE are PK. A new AMT is only recorded when it changes, which doesn't happen every day.
What I want to do is create a query that will give me daily totals for each of the last 5 days where EFFDATE is less