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

How many clustered indexes there can be on table ?

1024


Characterize join and name diverse sorts of joins?

965


How many primary keys are possible in a table?

919


Is there any difference between the primary key and unique key?

999


Will count(column) include columns with null values in its count?

1088


To which devices can a backup be created and where should these devices be located? : sql server management studio

1038


How do I find query history in sql server?

937


When you should use a low fill factor?

990


What is the ‘fillfactor’?

966


Tell me what is difference between clustered and non clustered index?

942


What is attribute? : sql server analysis services, ssas

1015


What is a heap?

1029


How to modify an existing stored procedure in ms sql server?

1078


List some case manipulation functions in sql?

1020


How to start sql server browser service?

1128