Dear friends,
I am returning to the Forum after a long gap.
I have a Database which deals with cotton ginning. The cotton seed generated is sold to seed buyers and cotton seed oil mills. The Database have the following tables:
tblGinning:
GinningID
DateOfGinning
CottonGinnedInQuintals
LintGeneratedInQuintals
SeedGeneratedInQuintals
tblBuyer
BuyerID (PK)
BuyerName and other related fields
tblContract
ContractID (PK)
BuyerID (Child Key)
ContractDT
ContractQty
RatePerQtl
tblReadyIntimation
(in this table the seed generated is intimated to the buyer on date to date basis, so that he can make payment and lift the seed)
IntimationID(PK)
ContractID (Child Key)
DateOfIntimation
SeedReadyInQuintals
What I need is, a query to show the quantity available to be intimated to the remaining contracts (Contract Wise) after deducting quantity already intimated. I tried and failed. I hope the experts can help.