
- Forum
- Database
- SQL Server
- About sub Quries
About sub Quries
This is a discussion on About sub Quries within the SQL Server forums, part of the Database category; Hi Need help in sql sever2000 plz help to write query for the retriving the field values of nth row ...
-
08-25-2006, 12:57 AM #1
- Join Date
- Aug 2006
- Answers
- 1
About sub Quries
Hi
Need help in sql sever2000
plz help to write query for the retriving the field values of nth row in a table or joining two tables
-
04-22-2008, 02:06 AM #2
- Join Date
- Apr 2008
- Answers
- 7
Hi Praveen,
Try this .......
SELECT * FROM
(SELECT ROW_NUMBER() OVER(ORDER BY EMPNo) ROW_No, EMPNO, EMPNAME
FROM EMP_DUPLICATE) AS Emp_Duplicate_WithRowNumbers
WHERE ROW_No = n (n stands for the Row number which you want to retrieve)
Regards,
Jagadish Babu

Reply With Quote





