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

Explain the different stages in creating a report in cognos report net?

3 Answers   IBM,


can we create master detail report where master and detailed container is separate?

2 Answers   JPMorgan Chase,


Please explain the different stages in creating a report in cognos report net?

0 Answers  


what is report view?

4 Answers   Cap Gemini,


How can you schedule the report that it displays a day old data. (My answer was to create a view, but the lady wanted some other method).

1 Answers  


how many notations are posible(cordinolity)are there in between two tables(one is fact and another is dimension)pls give me a example pls.

0 Answers  


What are the types of catalogs in cognos?

0 Answers  


How to write the necessary TSQL to create data sets, pull the data sets in Cognos Report Studio WITHOUT using framework manager.

2 Answers   Satyam,


suppose i want to do drill through a column only for the values which is having more than > 50000. how can i do that?

2 Answers   Mind Tree,


using of matric studio we can developed to scorecard ... what is the meaning by scorecords

1 Answers  


what is an outer join? difference between left outer join right outer join with an example?

1 Answers   HCL,


what is model and say about process how to create model and how to test model?

0 Answers   IBM,


Categories