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 / madhoo

You are question is not clear.....you need decide based on
which column you want first 10 records.....

if you work on Salary column this is the query .......

select distinct sal from emp a
where (select count(*) from emp b where a.sal<b.sal)<=10
order by sal desc
/

Any queries on Sql please feel free to ask me i am very
interest in it......

Is This Answer Correct ?    7 Yes 0 No

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

Answer / srinu

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

Is This Answer Correct ?    6 Yes 2 No

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

Answer / don

we can create a list report and sort the field which we
need the top 10 of in an descending order and before
running the report set rows per page to 10

Is This Answer Correct ?    2 Yes 0 No

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

Answer / m m naidu

To display first 10 records we can write the query as
select * from(select * from emp order by ename desc) where
ronum<=10;

Is This Answer Correct ?    7 Yes 6 No

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

Answer / lakhwinder singh

Query for display the top 10 records from the table(tbl1)

select top 10 * from tbl1

Is This Answer Correct ?    4 Yes 3 No

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

Answer / sathish

select * from employee
limit 10

Is This Answer Correct ?    1 Yes 3 No

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

Answer / richard

Select Max(Count=10) from emp a

Is This Answer Correct ?    3 Yes 8 No

Post New Answer

More Cognos Interview Questions

how many types of variables in cognos report net and cognos 8

4 Answers   HCL, Merrill Lynch,


Can any one tell me cognos training class in chennai? thanks in advance...

5 Answers  


Tell me about Dnamic and Static Dashboards?

0 Answers  


What are the best practices while building a Cognos Framework Manager Package ? As in, what calculations would you not like to be handled in FM and rather get it directly from Database.

3 Answers  


What is limited local? and the uses?

2 Answers   Ness Technologies,






tell me two or three issues from client side and how to solve those issues?

0 Answers   TCS,


What is the diff between Drill through reports and Master detail reports?

2 Answers   CSC, TCS,


How to select all in value prompt instead of cascade prompt?

3 Answers   IBM,


difference between drill through and master detail report?

2 Answers   HCL, Zensar,


Define the cognos reporting tool?

0 Answers  


----------------What is Surrogate Key?

1 Answers   Cap Gemini,


advantages of detailed filter??? and summarized filter???

4 Answers   iFlex,


Categories