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

What is a trigger and types of a trigger?

1033


What is the difference between online clustering and Offline clustering?

2482


What are the three different part of rdl file explain them?

276


How can sql server instances be hidden?

1032


Explain isolation levels that sql server supports?

1088


what changed between the previous version of sql server and the current version? : Sql server database administration

1058


What is the maximum size of sql server database?

1067


How to set database to be single_user in ms sql server?

1084


Where are sql server user names and passwords stored in sql server?

1161


What is a ddl statement?

964


How to read data in a table with "select" statements?

1030


How will you make an attribute not process? : sql server analysis services, ssas

1161


Can You Use A Stored Procedure To Provide Data To An Ssrs Report?

152


in a table is b in column k (manikanta,sivananda,muralidhar) i want result like (mnikanta,sivnanda,murlidhar) please slove it

1569


What is the difference between a primary key and a unique key? Are they the same?

1128