I want to update the top 100 records in SQL Server. I have a table T1 with fields F1 and F2. T1 has 200 records. I want
T1
F1
F2
Try:
UPDATE Dispatch_Post SET isSync = 1 WHERE ChallanNo IN (SELECT TOP 1000 ChallanNo FROM dbo.Dispatch_Post ORDER BY CreatedDate DESC)