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

Can we call dml statement in function?

0 Answers  


Explain the purpose of %type and %rowtype data types?

0 Answers  


explain primary keys and auto increment fields in mysql : sql dba

0 Answers  


Can we use loop in sql?

0 Answers  


can i use dbms_output.put_line in a function u are telling as return statement

7 Answers  






IF EMP HAS 2 ROWS,DEPT HAS 4 ROWS.WHATS THE RESULT OF SELECT * FROM EMP,DEPT;

1 Answers  


What is mutating table error?

0 Answers  


What does trigger mean in slang?

0 Answers  


What are different functions in sql?

0 Answers  


What is trigger point?

0 Answers  


Explain the purpose of %type and %rowtype data types with the example?

0 Answers  


What are records give examples?

0 Answers  


Categories