Table E:
Name dept month sal
1 A JAN 800
2 B APR 1000
3 A JAN 300
4 A JAN 600
5 C JUN 400
1) SELECT HIGHEST SAL PAID DEPT IN JAN MONTH?
2) WRITE QUERY GET MAX SAL DEPT NO?
Answer Posted / parag
1) SELECT DISTINCT DEPT FROM TABLE
WHERE SAL >=
(SELECT MAX(SAL) FROM TABLE
WHERE MONTH = 'JAN');
2) SELECT DISTINCT DEPT, SAL FROM TABLE
WHERE SAL >=
(SELECT MAX(SAL) FROM TABLE);
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the differences between interval year to month and interval day to second?
Difference between oracle's plus (+) notation and ansi join notation?
What are the database administrators utilities available?
Is there an oracle sql query that aggregates multiple rows into one row?
What is the difference between PFILE and SPFILE in Oracle?
How to select all columns of all rows from a table in oracle?
How to use fetch statement in a loop?
What is the disadvantage of User defind function?
What are the system predefined user roles?
Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?
How to create a new oracle data file?
How to define and use table alias names in oracle?
Describe the types of sub query?
What is meant by a deadlock situation?
What is an oracle database table?