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

Answers were Sorted based on User's Feedback



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

Answer / lakshmi reddy

top 10 records
select * from emp where rownum<=10

Based on maximum salary(hithest top 10 salaries with details)
select * from (select emp.* from emp order by sal desc)
where rownum<=10

Is This Answer Correct ?    0 Yes 0 No

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

Answer / harish

based on salary top 10 records for emp table

select * from ( select * from emp order by sal desc)where rownum<=10;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Cognos Interview Questions

hai dis Ashok Sahu I'm searhing on cognos.1 want realtime scenarios with solutions.persons having hands on experience in real time plz help me out.

0 Answers  


why we r using report studio in webbased only and fm windows based only

1 Answers  


What is the use of content store in cognos?

2 Answers  


In my report i want display sales rep name, country ,city how to achieve this by using repeater table

0 Answers   IBM,


diff b/w layout calculation and query calculation

2 Answers   Cap Gemini,






Hi I have Columns A, B, C, D, E in a Crosstab Report, Cost Budget Column A Column B Column C Column D Column E Total of A+B+D+ E Product 1 100 200 300 400 500 1200 Product 2 500 300 400 500 800 2100 Column A Column B Column C Column D Column E is coming from the Query Item: Category I dont want to include C Column value in the Total Column Column Chas to display in the Crosstab Report how to achieve it Any idea Thanks Sumith

2 Answers  


------------What is Slicer memberset?

1 Answers  


where exactly determinants are used in cognos framework manager?

4 Answers   Satyam,


What are the advantages of using cognos sql?

0 Answers  


What is difference between content store and content manager?

0 Answers  


how u migrate the reports from impromptu to reportnet???

3 Answers   Wipro,


Can you define set to be cardinality?

0 Answers  


Categories