Hi,
I have a sales forecast table called tblSalesForecasts
which amongst many fields includes
SalesForecastEncID(Unique ID to this table.)
ModelEncID(unique ID to model, not unique to this table)
BaseModel(the name of the product)
In a second table I have the forecasted month data.
tblSalesForecastsQty
SalesForecastEncID - to reference back with
MonthID - digit of the month
YearID - the 4 digit for the year
ForecastQty - a number sales enters for their forecast.
How could I create a SQL statement to endup with a record set to be dumped to a report to show the list of BaseModels, Discription of each model looked up from tblModels using ModelEncID, and then a column of the total of forecast qty.
Each BaseModel name should show only once, and if one record's forecast is 10 and the next record's forecast's value is 20, then it should display 30 as the qty forecast for that product.
Thanks for any help!
-P
I have a sales forecast table called tblSalesForecasts
which amongst many fields includes
SalesForecastEncID(Unique ID to this table.)
ModelEncID(unique ID to model, not unique to this table)
BaseModel(the name of the product)
In a second table I have the forecasted month data.
tblSalesForecastsQty
SalesForecastEncID - to reference back with
MonthID - digit of the month
YearID - the 4 digit for the year
ForecastQty - a number sales enters for their forecast.
How could I create a SQL statement to endup with a record set to be dumped to a report to show the list of BaseModels, Discription of each model looked up from tblModels using ModelEncID, and then a column of the total of forecast qty.
Each BaseModel name should show only once, and if one record's forecast is 10 and the next record's forecast's value is 20, then it should display 30 as the qty forecast for that product.
Thanks for any help!
-P