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

What is 3nf normalization form?

561


What is the difference between for xml raw and for xml auto?

561


What is difference between unique and primary key?

478


What is row_number () and partition by in sql server?

519


What is merge?

569






How to end a stored procedure properly in ms sql server?

550


Explain different types of locks in sql server.

595


What is read committed?

605


What is dbcc updateusage?

534


What are the different types of locks in the database?

486


How to rename databases in ms sql server?

620


Explain what is scheduled job and how to create it?

542


What is after dml trigger?

570


How do you implement session management in SQL Server mode?

552


How to count rows with the count(*) function in ms sql server?

534