a query to select maxmun 3 salaries of employee table
Answer Posted / krishna kumar r
SELECT E1.ENAME,E1.SAL FROM EMP E1 WHERE 3>(SELECT COUNT(*)
FROM EMP E2 WHERE E2.SAL>E1.SAL ) ORDER BY SAL DESC
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the different types of modules in oracle forms?
How to drop an existing table in oracle?
State the various uses of dbcc command?
What is the difference between substr & instr functions?
Differentiate between function and procedure in oracle.
What is a select query statement in oracle?
What are the restrictions on external table columns?
Explain a data segment?
Explain the use of rows option in exp command.
How to fetch the row which has the max value for a column?
What is format trigger?
What is a package ? What are the advantages of package ?
What is an oracle database table?
For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?
What is the order of defining local variables and sub procedures/functions?