I have the following table that I would like to Append. dbo.InvPrice
It contains the following fields: StockCode, PriceCode, SellingPrice. Everytime we create new Stock Codes I need to update the price table. Each new stock code will have different pricing for different PriceCodes. For example lower case a to k (a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) We would like to create and update or append query to automatically add the pricing. Each PriceCode has it's own discount percentage which are listed in the second table.
dbo.Pricing
PriceCode, Discount.
a 30
b 60
c 55
All discounts are based on Retail price. The append query should contain a parameters for Stock Code and Retail price. So the query will add records into dbo.InvPrice Table where pricing will be calculated based on Prompt entered Retail and discount from the other table.
Any advice how to create this query?
Thanks