Hi everyone, I have a script that gives me all the information about the Items Purchase, my problem is because every Item has several lots and I need just the Lot with the Most recent date (LotDate) but I don't know how can I do it, this is my code, thanks in advance : SELECT CreditorNumber, Supplier, ItemCode, Description, PurchasePackage, PurchasePrice, PurchaseCurrency, XRate, IVA, DeliveryDays, LotNumber, LotDateFROM dbo.View_VK_PURCHASE_PRICE