How to get latest record with same ID in SQL Server
SELECT TOP 1 * FROM MyTable WHERE Id = 12345 ORDER BY MyTimestampColumn DESC
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)