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

Answer Posted / ramana

Table Like this

Create Table Employee(Name varchar(20),Location
varchar(20),Salary int)

Query Like this

Select top 1 * from employee where Name not in(select top 1
Name from Employee)

it will display second record....

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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? : Sql server administration

538


Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .

1489


What is normalization and denormalization in sql server?

539


What are 3 ways to get a count of the number of records in a table?

612


What is the purpose of floor function?

542






Explain external key management in sql server 2008

504


How to connect a database with sql express.?

569


Explain rdbms?

605


How to create indexed view?

585


Which trace flags are enabled in sql server?

526


When columns are added to existing tables, what do they initially contain?

628


Can binary strings be used in arithmetical operations?

524


Can I run multiple instances of sql server 2000 at the same time on one computer?

607


How efficient you are in oracle and SQL server?

642


What are the lambda triggers?

488