G
Guest
I have two tables: [Budgeted Hours] and [Hours Used].
[Budgeted Hours] has two fields: [Job Number] and [BudgetedHours]
[Hours Used] has three fields: [Job Number], [Hours] and [Date]
Both tables are related though the [Job Number] field.
I would like to create one query that gives me:
The [Job Number] in the first column in ascending order.
The sum of the hours budgeted for that [Job Number] in the second colum
The sum of the hours used for that [Job Number] between two dates in the third column.
I can do this with two queries but this seems very inefficient. I would really like to get this into one query. Can anyone help?
Thanks,
Larry
[Budgeted Hours] has two fields: [Job Number] and [BudgetedHours]
[Hours Used] has three fields: [Job Number], [Hours] and [Date]
Both tables are related though the [Job Number] field.
I would like to create one query that gives me:
The [Job Number] in the first column in ascending order.
The sum of the hours budgeted for that [Job Number] in the second colum
The sum of the hours used for that [Job Number] between two dates in the third column.
I can do this with two queries but this seems very inefficient. I would really like to get this into one query. Can anyone help?
Thanks,
Larry