I have 2 tables:
TransHeader Table with fields(ID, TotQty, TotCost)
TransDetail Table with fields(ID, ItemCode, Qty, Cost)
I want to update the TransHeader (TotQty, TotCost) with the sum of (Qty, Cost) from the TransDetail Table, knowing that every TransHeader Table has many TransDetail records.
I want to do this operation with one query.
thanks
TransHeader Table with fields(ID, TotQty, TotCost)
TransDetail Table with fields(ID, ItemCode, Qty, Cost)
I want to update the TransHeader (TotQty, TotCost) with the sum of (Qty, Cost) from the TransDetail Table, knowing that every TransHeader Table has many TransDetail records.
I want to do this operation with one query.
thanks
Comment