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

select a.empid, a.ename,a.salary from (select * from emp
order by empid desc LIMIT 6) b INNER JOIN (select * from
emp order by empid asc LIMIT 7) a on b.empid=a.empid

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain syntax for viewing, dropping and disabling triggers?

931


What are a database and a data warehouse?

1007


Explain index in sql server?

995


What do you mean by an execution plan? Why is it used?

993


What are the properties and different types of sub-queries?

991


How to populate a table in sql server?

942


What do you mean by an execution plan?

1093


What is the difference between sdf and mdf?

1281


What is collation sensitivity?

1038


Tell me what is difference between view and materialized view?

920


What is user-defined functions? What are the types of user-defined functions that can be created?

1019


What is the difference between Triggers and Stored Procedure?

1081


How to recompile stored procedure at run time?

1054


explain what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

1075


Name three of the features managed by the surface area configuration tool? : sql server security

976