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

1. Differebces between Merge and Union In Cognos? 2. What is With Clause In Cognos? 3. Differences between Cognos Sql & Native Sql?What are their Advantages and DisAdvantages? 4. What are different events in Report studio? 5. Create 12 columns for months by writing single case statement? 6. What is Tool Tip?

0 Answers   Wipro,


How security is concerned with Reportnet? Explain its implementing steps.

0 Answers   iFlex,


What do you mean by drill across?

0 Answers  


what is slowly growing dimension??

6 Answers   Accenture,


How can we create a dynamic column name in cognos?

0 Answers  


what is dynamic sort?

1 Answers   Infosys,


Can you define a catalog and types of catalogs in cognos?

0 Answers  


If there are two values at value prompt level and when selecting first value it have to go to date prompt and when selecting second value we have to get output without any prompting. How to solve this issue. if any plz mail me on this vasuattada@yahoo.co.in

2 Answers   HCL,


What is meant by grouped star schema

0 Answers   IBM,


What is defined as Query studio?

0 Answers  


What is meant by Tabular SQL in Cognos Report net

3 Answers   Infosys,


What is main advantage datawarehousing over oracle?

0 Answers  


Categories