Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to select nth record from a table?

Answer Posted / ravinder pawar

Hi Frnds,
Pravin's logic is correct. I am just modifying it little
bit.

Select Top 1 *
From (Select Top 5 *
from HumanResources.Employee
order by EmployeeID desc)as temp

---Note If we don't use temp we'll get error as mentioned
below:
Incorrect syntax near ')'.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is standby servers? Explain types of standby servers.

995


What is sql server replication? : sql server replication

983


Why would you call update statistics?

1014


What is ddl and dml commands?

902


What is the tcp/ip port on which sql server runs?

1156


Where the sql logs gets stored? : sql server database administration

960


Define indexes?

1041


How to insert stored procedure result into temporary table?

1015


What are the differences between stored procedure and the dynamic sql?

1089


Can two tables share a primary key?

1018


What is the main difference between ‘between’ and ‘in’ condition operators?

1188


What are the operating modes in which database mirroring runs?

1085


What is simple indexing method?

1027


How do you send email on SQL Server?

1060


Explain about SQLOS?

1003