SyntaxFix
Write A Post
Hire A Developer
Questions
You can use this for get first record where has clause
SELECT TOP(1) * , ROW_NUMBER() OVER(ORDER BY UserId) AS rownum FROM Users WHERE UserName = 'Joe' ORDER BY rownum ASC