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

select top 1 * from (select top 5 * from employee order by
empid)sub order by empid desc

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the update command do?

611


How many clustered indexes can be created on a table? I create a separate index on each column of a table. what are the advantages and disadvantages of this approach?

677


What is use of dbcc commands?

622


How many cores do I need for sql server 2016?

503


What are points to remember while using the fillfactor argument?

528






What is the difference between DATETIME2 and DATETIME?

625


Explain triggers in sql?

551


What is single-user mode?

522


What is user-defined scalar function?

553


How to get a list of columns using the "sys.columns" view in ms sql server?

556


Do you know what is a trace frag? Where do we use it?

552


Are resultset updatable?

522


How much space does sql server 2016 take?

567


What are subquery and its properties?

571


Do you know what is difference between index seek vs. Index scan?

517