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 are different types of data sources?

1085


What is query processing?

990


How do you start single user mode in clustered installations?

989


What are the dmvs?

1074


What is the difference between a unique key and primary key?

1006


Explain how many types of relationship?

1086


What are the restrictions that views have to follow?

1031


explain the storage models of olap? : Sql server database administration

1016


Write the syntax for stuff function in an sql server?

1074


Explain indexing and what are the advantages of it?

1070


How to transfer data from a cursor to variables with a "fetch" statement?

1146


How to write a query with a right outer join in ms sql server?

965


How many types of the database links?

1120


What is statement level trigger?

1048


What is set nocount on?

994