Possible duplicate of This or This but didn't get any solution there. I want to select records from Quote with max LastModifiedDate as below,
SELECT Id,AccountId,BillingAddress FROM Quote where LastModifiedDate in (SELECT MAX(LastModifiedDate) FROM Quote)
But its giving
The inner and outer selects should not be on the same object type
Highly appreciate any help.