I have a table that contains
SCode
FYear
FMonth
Qty
Cost
I need to create a report which will calculate the Year to date information and the Prior year Year to date information and show it along with the current month and the prior year for the current month.
I created individual queries to gather the information and each appears to run correctly on its own, but when I join the queries together using an inner join, instead of getting the 3500 records I was expecting, I got over 2 million.
Do you have any suggestions on how to correct this, or an easier way of doing it?
I am sure this is probably something simple that I am trying to make complicated.
SCode
FYear
FMonth
Qty
Cost
I need to create a report which will calculate the Year to date information and the Prior year Year to date information and show it along with the current month and the prior year for the current month.
I created individual queries to gather the information and each appears to run correctly on its own, but when I join the queries together using an inner join, instead of getting the 3500 records I was expecting, I got over 2 million.
Do you have any suggestions on how to correct this, or an easier way of doing it?
I am sure this is probably something simple that I am trying to make complicated.