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 / murthy

declare @n int
set @n=5
select top (@n) * from employees
except
select top (@n-1) * from employees
GO

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration

542


Explain about local stored procedure?

512


Can you name a few encryption mechanisms in sql server?

547


Which language rdl files made of?

100


Explain what is “asynchronous” communication in sql server service broker?

507






What is SQL Azure?

85


What new changes are being made in SQL Server?

582


Once setting replication, can you have distributor on sql server 2005, publisher of sql server 2008?

605


We need to perform what steps in the following order to work with a cursor?

724


How can we remove orphan records from a table?

540


How to connect of datebase with sql express.?

635


What are the disadvantages of using querystrings to send data from one page to another?

598


what is normalization? Explain different levels of normalization? : Sql server database administration

663


How to generate random numbers with the rand() function in ms sql server?

575


What is an indexed view?

592