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
what is the difference between openrowset and openquery?
How do I create a partition table in sql server?
What are the purposes and advantages stored procedure?
Why main is user defined function?
What stored by the msdb? : sql server database administration
Can an automatic recovery be initiated by a user?
How do I create a stored procedure in dbml?
1.how to find the dead lock in sql server? 2.How to fine the memory leaks in sql server? 3.suppose transaction log file increasing what action will take ?
What is subquery explain with example?
How to find the second highest salary of an employee?
Can you insert NULL in unique column?
What is a field in a table?
explain different levels of normalization? : Sql server database administration
How would we use distinct statement? What is its use?
How to query multiple tables jointly?