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
List few advantages of stored procedure.
List all the types of user-defined functions?
How to modify an existing user defined function?
Define candidate key, alternate key, and composite key.
Difference between drill down and drill through report.
What is the use of commit?
Can we use pragma autonomous_transaction in trigger?
How to use copy and concatenate commands in SQL?
How check triggers in sql server?
What are constraints?
How to transfer data from a cursor to variables with a "fetch" statement?
What are the security related catalog views? : sql server security
How do I find sql server instance name?
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?
How to Insert multiple rows with a single insert statement?