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 5 to 7 rows from a table, which contains 10 rows?

Answer Posted / purabi roy(sarkar)

select top 3* from Tablename
where columnname in ( select top 7columnname from table
name order by columnname desc )
and columnname not in( select top 4columnname from
tablename order by columnname desc )
order by columnname desc

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the cartesian product of the table?

942


What is postgresql server?

975


What is the difference between system objects and user objects?

1140


What are the steps to insert a table?

920


Sql server reporting services vs. Crystal reports.

131


What are the components of dbms?

938


What is the need for indexing?

925


What is trigger and different types of Triggers?

1117


How to filter out duplications in the returning rows in ms sql server?

1112


Can sql servers linked to other servers like oracle?

928


What is the difference between stored procedure and user defined functions?

1174


what is blocking? : Sql server database administration

1013


What is recompile sql server?

1017


Tell me in brief how sql server enhances scalability of the database system?

970


Why do we use stored procedures in sql server?

921