I have two tables. The first table is a product table. the second table is prices. It is a one to many relationship as TableB contains multiple prices for a Supp_ID in TableA. What I need is a SQL that updates TableA.Supp_Lprice and TableA.Supp_Lcompany_id with the lowest price and company from TableB. The key field is Supp_ID.
TableA
------
Supp_ID
Supp_Name
Supp_Description
Supp_Lprice
Supp_Lcompany_id
TableB
------
Company_id
Supp_id
Supp_price
Supp_company_id
TableA
------
Supp_ID
Supp_Name
Supp_Description
Supp_Lprice
Supp_Lcompany_id
TableB
------
Company_id
Supp_id
Supp_price
Supp_company_id