I have two MySQL tables (product and price history) that I would like to join:
Product table:
Product
Id = int Name = varchar Manufacturer = varchar
Why not keep it simple and fast:
SELECT Product.UPC, Product.Name, Price_h.Price, Price_h.Date FROM Product LEFT JOIN Price_h ON Product.Id = Price_h.Product_id; ORDER BY Price_h.Date DESC LIMIT 1