chrisl1471
Registered User.
- Local time
- Today, 11:31
- Joined
- Dec 12, 2017
- Messages
- 11
Alright gurus: Have a question for ya, I have a database that shows orders, I have 2 date fields for REQUESTED ON then another for STATUS Date as the status changes to eventually "CLOSED".
What I am trying to get the DB to show me, is on week x I had XXX open records, and keep that total running for all the following weeks. Where it would be Open Records = (Previous + new records - closed records) for each week? Some weeks NEW records and/or closed may be null so I assume I can use the Nz here?
I think I am on the right path I have 2 sub queries built now that 1 shows me the # of records (new) broken down in weeks....
Then a 2nd one that shows me # of records closed by weeks...
Now I am stumped how to get them to do the math for me?
What I am trying to get the DB to show me, is on week x I had XXX open records, and keep that total running for all the following weeks. Where it would be Open Records = (Previous + new records - closed records) for each week? Some weeks NEW records and/or closed may be null so I assume I can use the Nz here?
I think I am on the right path I have 2 sub queries built now that 1 shows me the # of records (new) broken down in weeks....
Then a 2nd one that shows me # of records closed by weeks...
Now I am stumped how to get them to do the math for me?