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...

write a query to display to 10 max record from the employee
table?

Answer Posted / rajasivam.p

To find nth value

select salary from emp a where &n=(select count(distinct
salary) from emp b where a.empno<=b.empno);

to find max by nth value a.empno<=b.empno
to find min by nth value a.empno>=b.empno

OR

To find 10 max records

select * from (select * from emp order by salary desc) where
rownum<=&n;

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

New coloums are added in database, then how you know in report level

1512


write a query to display the departments with no employee?

1915


what are the features in cognos8ui

1991


What are shortcuts? Where it can be used? What are the advantages?

989


what r the reports u faced critical and how it can be solved .. any once can u give a best ans for interviw

2251


how you create security to reports?

1006


What is defined as Cognos Impromptu?

1025


How do we convert from Numeric to be Words?

2937


What is defined as catalog and types of catalogs in Cognos?

1041


What is the difference between low affinity and high affinity connections?

960


How to Reset Pagenumbers in one report.

2596


dumps needed ASAP for - C2020-180 Cognos IBM Certification

2160


How to deploy from one server to another server?

2431


What is difference between informatica power mart and power center?

942


It is possible to test 2 query subjects at a time in CRN1.1 & C8 FWM?

2358