Greeting guys i have 4 tables uploaded under ,
im looking to get the product cost based on the order Date on the table SalesOrderheader ,
The Problem there is some product doesnt Exist on the productCosthistory since their cost didn't change or ended !
is there a way where i can make a condition if the productID doesnt Exist on the table ProdcutCostHistory than take the ProductCost that exist on the product table
and thanks !
table ProductCostHistory
table SalesOrderHeader
table SalesOrderDetail
table product :