K
Kostas Tsolis
Sorry for the duplicate post but i feel i haven't
explained correctly previously.
In my db i have table "Purchases" with
fields: "DateOfPurchase", "Product" and "PurchaseAmount".
There is another table "Sales", with
fields "DateOfPurchase", "Product" and "SalesAmount".
How can i create a query with fields:
Year Product PurchaseAmount SalesAmount
2002 124 12000 16000
2002 138 5000 4000
2003 125 2000 0
2004 125 0 600
I have tried using Year([DateOfPurchase]) and setting
criteria for the other date but i face problems with null
values and with years where a product has for example
only purchases or only sales.
Thanks a lot!
explained correctly previously.
In my db i have table "Purchases" with
fields: "DateOfPurchase", "Product" and "PurchaseAmount".
There is another table "Sales", with
fields "DateOfPurchase", "Product" and "SalesAmount".
How can i create a query with fields:
Year Product PurchaseAmount SalesAmount
2002 124 12000 16000
2002 138 5000 4000
2003 125 2000 0
2004 125 0 600
I have tried using Year([DateOfPurchase]) and setting
criteria for the other date but i face problems with null
values and with years where a product has for example
only purchases or only sales.
Thanks a lot!