Exforsys

Online Training

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 ...


Go Back   Exforsys > Database > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-25-2006, 01:57 AM
Junior Member
 
Join Date: Aug 2006
Posts: 1
praveenmandadi is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-22-2008, 03:06 AM
Junior Member
 
Join Date: Apr 2008
Posts: 7
jagadishbabub is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:13 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.