Write a query to find five highest salaries from EMP table.
(there is a column SALARY)

Answers were Sorted based on User's Feedback



Write a query to find five highest salaries from EMP table. (there is a column SALARY)..

Answer / mohammad murtuza ali

select * from salary where rowno<6

Is This Answer Correct ?    4 Yes 15 No

Write a query to find five highest salaries from EMP table. (there is a column SALARY)..

Answer / amit bharane

select salary from employees
where rownum<=5
order by salary desc

Is This Answer Correct ?    3 Yes 22 No

Write a query to find five highest salaries from EMP table. (there is a column SALARY)..

Answer / mohammad murtuza ali

select * from SALARY where where rowno<6 and empname like
empname

Is This Answer Correct ?    2 Yes 29 No

Write a query to find five highest salaries from EMP table. (there is a column SALARY)..

Answer / sujith

select * from test_sujith where rownum < 6 order by item3 desc

Is This Answer Correct ?    2 Yes 31 No

Post New Answer

More SQL PLSQL Interview Questions

How do I trace sql profiler?

0 Answers  


How does postgresql compare to mysql?

0 Answers  


What cursor type do you use to retrieve multiple recordsets?

17 Answers   Apollo, CTS, IonIdea, Microsoft, Oracle, TCS, Vmoksha, Wipro,


which command using query analyzer will give you the version of sql server and operating system? : Sql dba

0 Answers  


What is the maximum number of rows in sql table?

0 Answers  






What is the advantage of index in sql?

0 Answers  


What is rownum and rowid?

0 Answers  


What is pl sql in oracle?

0 Answers  


define join and explain different type of joins? : Sql dba

0 Answers  


Is oracel sql developer written in java?

0 Answers  


How does a self join work?

0 Answers  


Explain the commit statement.

0 Answers  


Categories