G
Guest
I have a table of projects:
- Project_ID
- Name
- Approval_Date
- (etc.)
.... and a linked table of diary-type work entries completed on these projects:
- WorkEntry_ID
- Project_ID
- WorkDate
- Hours_Spent
- (etc.)
I'm hoping to find out three things in a single query:
1. How many total hours spent on the project?
2. How many total hours spent before the approval date?, and
3. How many total hours spent on or after the approval date?
Can this all happen in one query? Any example SQL statements out there?!?!
- Project_ID
- Name
- Approval_Date
- (etc.)
.... and a linked table of diary-type work entries completed on these projects:
- WorkEntry_ID
- Project_ID
- WorkDate
- Hours_Spent
- (etc.)
I'm hoping to find out three things in a single query:
1. How many total hours spent on the project?
2. How many total hours spent before the approval date?, and
3. How many total hours spent on or after the approval date?
Can this all happen in one query? Any example SQL statements out there?!?!