I have 2 tables named- Product and sold_product
sold_product
product_code sold_date product_id product_rating
46077862546 18/08/21 380 3.5
41237862546 18/08/21 300 5.0
41237862789 06/08/21 356 4.0
Product
product_id product_name rack_no
380 Television 5
344 Refridgerator 4
333 Air Conditioner 6
Now I need to pull the latest sold_date, for every product_id with product_code and product_name. every product_id is having single(unique) entry in product table.