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

You can achieve this by using following Query

select * from(select top 3 * from employees where
employeeid in(select top 7 employeeid from employees where
employeeid not in(select top 4 employeeid from employees
order by employeeid)))e order by employeeid.

Thanks
AyyappanRamachandran

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to define testing of network layers? : Sql server database administration

954


How to get nth highest salary from employee table.

1149


What do you understand by SQL*Net?

997


What is the purpose of grouping data in a report?

942


What are xml indexes?

925


What are sp_configure commands and set commands?

1003


Define outer join in sql server joins?

922


How do you delete a trigger?

955


Do you know the policy based administration feature of sql server 2008?

936


Which trace flags are enabled in sql server?

989


Explain about Normalization?

1040


How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.

3856


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

937


Can sql servers link to other servers like oracle?

827


Explain how to maintain a fill factor in existing indexes?

979