I have two tables in a one to many relationship. There can be many ProdPrice records for each ProdMast record. What I am trying to do is find the lowest price for each product (key: ProdID) in the ProdPrice table and update the ProdMast table (LowPrice and LowCompanyID). What would the SQL statement be for this?
ProdMast:
ProdID
ProdName
ProdDescription
LowPrice
LowCompanyID
ProdPrice:
ProdID
CompanyID
Price
Thanks for any help!
ProdMast:
ProdID
ProdName
ProdDescription
LowPrice
LowCompanyID
ProdPrice:
ProdID
CompanyID
Price
Thanks for any help!