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

List types of tables in SQL Azure?

102


How to connect to SQL Azure Database by using sqlcmd?

110


hi, how to link a text file and a .rpt file in my tables of sql server and to retrieve those records for further use. reply me as soon as possible.

1557


What is nested transaction?

536


What is default constraint in ms sql server?

534






Explain full-text query in sql server?

534


Write a program to fetch first 10 records from a file?

600


How to connect sql server management studio express to sql server 2005 express?

579


Does partitioning improve performance?

486


SQL Server Architecture ?

1924


How to access the inserted record of an event?

574


If a user does not have permission to a table, but has permission to a view created on it, will he be able to view the data in table?

552


If user is owning any SQL Objects, can we drop that user

1602


What are triggers? How many triggers you can have on a table? How to invoke a trigger on demand?

741


What is faster join or union?

597