how to get 25th row in any table in sqlserver can u tell me
syntax

Answer Posted / venkat

suppose the table x having a column with name empid

set rowcount 25
select * from x where empid not in (select top 24 empid
from x)

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I change my passwords (database, LDAP, and so on) without causing an outage?

608


Write the SQL query to drop, truncate and delete table.

560


What is the meaning of sql server?

538


What is acid db?

521


As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?

629






What is a non clustered primary key?

525


What is transaction server distributed transaction?

571


Write an SQL query to obtain the 2nd highest salary.

619


What are different types of replication in sql server?

579


What are transactions in sql?

558


What are the character string functions supported by sql server 2005?

532


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

533


How to download microsoft sql server 2005 express edition?

593


How to use group functions in the select clause in ms sql server?

548


Write a sql query to get zero records from a table having n number of records?

717