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

Write the queries for commands like Create Table, Delete table, Drop Table etc.

1176


Explain the difference between cross join and full outer join?

1034


When is the use of update_statistics command?

1062


How to list all field names in the result set using mssql_field_name()?

954


Distinguish between nested subquery and correlated subquery?

1120


Explain how to integrate the ssrs reports in application?

1066


What are the advantages of sql azure?

140


How to declare a cursor with "declare ... Cursor" in ms sql server?

1095


What are cursors in ms sql server?

1244


What is cte (common table expression)?

1088


Explain ranking functions?

1099


Why and when do stored procedure recompile?

1033


What are the five major components of a dbms?

966


Is the primary key column of a table an index in ms sql server?

1005


How to assign null values to variables or columns?

1030