how to retrive only second row from table in sql server
2000?

Answer Posted / arun kumar k s

drop table #temp select top 2 identity(int,1,1) as SlNo, *
into #temp from TABLE_NAME select * from #temp where SlNo=2

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which sql server table is used to hold the stored procedure script?

559


What do you mean by tablesample?

733


How can I know what locks are running on which resource?

604


What are the different types of replication you can set up in sql server?

622


What is db stored procedure?

541






How to define the name and server for a new dsn?

645


What is normalization and its types?

638


How to enter binary string literals in ms sql server?

703


Mention the different types of triggers?

635


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

686


What is use of attribute hierarchy ordered ? : sql server analysis services, ssas

635


How to create percentile function?

116


How much memory that we are using in Logshipping Concept?

1451


What is the default schema of your login session in ms sql server?

672


How to move database physical files in ms sql server?

604