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


Please Help Members By Posting Answers For Below Questions

my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions

1541


What is “asynchronous” communication in sql server service broker?

549


How to modify an existing user defined function?

604


What is the difference between stored procedure and user defined functions?

632


Is sql server 2016 free?

536






How to write a query with a right outer join in ms sql server?

485


What is implicit mode in sql server?

567


how to create “alternate row colour”?

109


Does the order of columns in update statements matter?

482


What are different types of data sources?

496


What is a performance monitor?

560


How to rename an existing column with sql server management studio?

505


How to run queries with sql server management studio express?

576


What is dml command?

553


What is report rendering ?

102