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 primary key, unique key, and foreign key?

977


What is a unique key constraint?

1032


Explain the difference between control flow and data flow?

1008


Do you know what are acid properties of transaction?

962


How to convert a numeric expression from one data type to another?

1023


Is a primary key unique?

996


Tell me what are the advantages of using stored procedures?

1018


What is primary key and example?

963


Explain system rowset functions?

1005


Define msdb database?

1034


How to create a scrollable cursor with the scroll option?

1004


How to modify existing triggers using "alter trigger"?

1023


Explain what you mean by 3 tier architecture.

1078


What are the basic functions for master, msdb, model, tempdb and resource databases?

995


What is the purpose of indexing?

1048