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

Which one is better subquery or joins?

1 Answers  


How to Declare Fixed Length String Value In PL SQL

1 Answers  


Why do we use procedures in sql?

1 Answers  


What are different categories of sql commands?

1 Answers  


cursor types? explain with example programs?

1 Answers   HP,


Can a trigger call a stored procedure?

1 Answers  


What is a file delimiter?

1 Answers  


What is union and union all keyword in sql and what are their differences?

1 Answers  


Mention what plvcmt and plvrb does in pl/sql?

1 Answers  


What are the types of dbms?

1 Answers  


What is the size of partition table?

1 Answers  


What are the types of operators available in sql?

1 Answers  


Categories