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

Answer Posted / pradyumna

set rowcount 25
declare @temptable table
(id int identity(1,1),itemid int)
insert @temptable
select itemid from tbl123

select * from tbl123 where itemid=(select itemid from
@temptable where id=25)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

862


Do you know what is openxml in sql server?

615


What do we have to check in database testing?

585


Explain what is dbcc?

595


What is a unique index?

529






What is query and its types?

516


What is 2nf normalization form?

626


Can you create a logon trigger in sql server 2005 express edition?

576


what is the main function of a query parameter?

111


What options are available to audit login activity? : sql server security

636


What are the different types of columns types constraints in the sql server?

529


What is the partitioning method?

536


Why would you use sql agent?

736


How to convert numeric values to integers in ms sql server?

534


what exactly sql injuction.how to overcome.....

2043