how to find the particular row in table?(means suppose one
table contain 10 rows , in these 10 rows how to find the
particular row(example in 10 rows i want 5 row how)?
Answer Posted / owen
-- I believe the questionner wants the 5th row
-- (only) from the data.
-- I also assume we don't have a useful ID to work with.
-- This is one way of doing it without cursors:
select top 1 <fieldname>
from <TableName>
where <fieldname> not in
(select top 5 <fieldname>
from <TableName>)
-- NB Changing the "5" in the subquery above sets which
-- row number is returned
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
 Explain what is sql override for a source taLle in a mapping?
what purpose does the model database serve? : Sql server database administration
Explain what are the different index configurations a table can have?
Explain the architecture of ms sql reporting service?
How to identify current user in ssrs report?
What is the optimal disk configuration for a database server and what raid configurations would you use if budget is not a constraint?
How to create an index on an existing table in ms sql server?
In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance
What are the advantages of log shipping?
How would you go about developing a ssrs report?
What is measure group, measure? : sql server analysis services, ssas
hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.
What are Row versions of DataRow?
Explain the disadvantages/limitation of the cursor?
What does it mean to invest in the index?