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 find the particular row in table?(means suppose one
table contain 10 rows , in these 10 rows how to find the
particular row(example in 10 rows i want 5 row how)?

Answer Posted / owen

-- I believe the questionner wants the 5th row
-- (only) from the data.
-- I also assume we don't have a useful ID to work with.
-- This is one way of doing it without cursors:

select top 1 <fieldname>
from <TableName>
where <fieldname> not in
(select top 5 <fieldname>
from <TableName>)

-- NB Changing the "5" in the subquery above sets which
-- row number is returned

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to change the data type of an existing column with "alter table" statements in ms sql server?

1038


What are tables in sql server?

1097


What does it mean to normalize a database and why would you do it?

1024


Explain aggregate functions?

1141


what are the basic functions for master, msdb, model, tempdb and resource system databases? : sql server database administration

1047


your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration

1048


Explain alternate key, candidate key and composite key in sql server?

953


What is data source view or dsv? : sql server analysis services, ssas

1063


How to use “drop” keyword in sql server and give an example?

1193


What are the limitations in ssrs on sql server express edition?

195


Explain what is lock escalation and what is its purpose?

983


how to define testing of network layers? : Sql server database administration

1023


What is the difference between sql server 2000 object owner and sql server 2005 schema? : sql server database administration

1041


Explain collation?

1102


Find nth lowest salary or get nth lowest salary?

1081