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 / kishor

select top 1 * from table_name
where id in (select top 5 id from table_name order by id asc)
order by id desc

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many cores do I need for sql server 2016?

951


How do I perform an unattended install of sql server 2000?

1138


Write query to return all rows sql?

1110


What are the five major components of a dbms?

961


What are the advantages of user-defined functions over stored procedures in sql server?

1115


What is Cross Join and in which scenario do we use Cross Join?

1058


How to write the storeprocedure with in the store procedure? and how can we write the store procedure with in a trigger vice versa? plz post me the exact answer?

2629


Explain different types of self contained sub query?

1105


What does the on delete cascade option do?

1062


What are the new features in SQL Server 2005 when compared to SQL Server 2000?

1212


Explain system rowset functions?

1045


What do you mean by the term 'normalization'?

1282


What are entities and relationships?

1024


Explain microsoft sql server functions?

1177


Explain raiserror in sql server?

1077