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

What do you mean by collation recursive stored procedure?

1109


What is the use of floor function in sql server?

1130


In which sql server version report builder introduced?

152


Why we use trigger in sql server with example?

1014


What do we need queues in sql service broker?

1123


How to install sql server 2005 express edition?

1170


What happens if ntwdblib.dll is missing on your machine?

1188


What is the purpose of optimization?

1060


What is the stuff?

1060


How to execute a stored procedure in ms sql server?

1253


Can you move the resources after pausing the node? : sql server database administration

1168


What are data resources?

964


How will you hide an attribute? : sql server analysis services, ssas

1012


What are views used for?

1059


What is raiseerror? What is raiseerror?

1193