J
Jay
I have a simple table with the following fields:
ModelType text
ModelID number
SaleMonth date (mmm-yy)
SalePrice number
The table contains approximately 150 ModelTypes, each of which is made
up of several dozen ModelIDs. However, the ModelIDs which make up each
ModelType can vary from month-to-month, and this is the cause of my
question.
I want to query, grouping by ModelType and SaleMonth and averaging the
SalePrice. However, I want to query just two months, and for the two
months being queried only use fields where there are ModelID fields in
common between both months.
So it returns the average SalePrice for both months but on a
like-for-like basis (the same ModelIDs in each month).
Can anyone point me in the right direction. I don't really need a
parameter query to select the months as can use criteria to specify the
months. It's figuring how to do the like-for-like ModelIDs I'm a little
stuck with.
Any help greatly apreciated. Many thanks,
Jay
ModelType text
ModelID number
SaleMonth date (mmm-yy)
SalePrice number
The table contains approximately 150 ModelTypes, each of which is made
up of several dozen ModelIDs. However, the ModelIDs which make up each
ModelType can vary from month-to-month, and this is the cause of my
question.
I want to query, grouping by ModelType and SaleMonth and averaging the
SalePrice. However, I want to query just two months, and for the two
months being queried only use fields where there are ModelID fields in
common between both months.
So it returns the average SalePrice for both months but on a
like-for-like basis (the same ModelIDs in each month).
Can anyone point me in the right direction. I don't really need a
parameter query to select the months as can use criteria to specify the
months. It's figuring how to do the like-for-like ModelIDs I'm a little
stuck with.
Any help greatly apreciated. Many thanks,
Jay