D
David M C
Here's my table structure:
tblGroup:
JobNumber
GroupID (pk)
GroupName
tblLocation:
GroupID (fk)
LocationID (pk)
LocationName
tblTask:
LocationID (fk)
TaskID (pk)
TaskName
Price
tblTransaction:
TaskID (fk)
TransactionID (pk)
AuthorisedPayment
....
Relationships:
tblGroup 1:m tblLocation 1:m tblTask 1:m tblTransaction
In my query I would like to show:
JobNumber
GroupName
LocationName
TaskName
Price
SumOfAuthorisedPayment
where SumOfAuthorisedPayment is a sum of all the transactions on a given
task. How would I do this without showing multiple instances of the same task?
Thanks,
Dave
tblGroup:
JobNumber
GroupID (pk)
GroupName
tblLocation:
GroupID (fk)
LocationID (pk)
LocationName
tblTask:
LocationID (fk)
TaskID (pk)
TaskName
Price
tblTransaction:
TaskID (fk)
TransactionID (pk)
AuthorisedPayment
....
Relationships:
tblGroup 1:m tblLocation 1:m tblTask 1:m tblTransaction
In my query I would like to show:
JobNumber
GroupName
LocationName
TaskName
Price
SumOfAuthorisedPayment
where SumOfAuthorisedPayment is a sum of all the transactions on a given
task. How would I do this without showing multiple instances of the same task?
Thanks,
Dave