SELECT * FROM (
SELECT ROW_NUMBER() OVER (ORDER BY CategoryId) AS RowNo,CategoryId, CategoryName, LessThan, GreaterThan, AdvisorId, CategoryRating
FROM CategoryMapping
WHERE (AdvisorId = 1)
) AS foo
WHERE RowNo= 2
SELECT ROW_NUMBER() OVER (ORDER BY CategoryId) AS RowNo,CategoryId, CategoryName, LessThan, GreaterThan, AdvisorId, CategoryRating
FROM CategoryMapping
WHERE (AdvisorId = 1)
) AS foo
WHERE RowNo= 2
No comments:
Post a Comment