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

select * from
(select top 3 * from emp where empid in
(select top 7 * from emp where empid not in

(select top 4 * from emp order by empid)) order by empid

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sql server procedures?

1037


What is the process of indexing?

1053


What is measure group, measure? : sql server analysis services, ssas

1073


What is multilevel indexing?

981


Data is not being delivered to subscribers, what can be the possible reasons? : sql server replication

1104


What is the maximum rows in sql server table?

964


What is the default fill factor value?

1130


What is the impact on other user sessions when creating indexes?

965


Which data type columns are the best candidates for full-text indexing?

1026


Explain the ways to controlling cursor behavior?

968


Explain how dts is used to extract, transform and consolidate data?

1050


What is self contained scalar sub query?

1018


What is the use of sql profiler in sql server 2012?

945


What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration

1201


as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration

1018