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 / venkateswara reddy
1)select dept from E where sal=(select max(sal) from E where
month='JAN')
2)select dept from E where sal=(select max(sal) from E)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is transaction control statement and how many types of transaction control statement in Oracle?
What is redo log?
How to change program global area (pga) in oracle?
What query tells you how much space a tablespace named test is taking up, and how much space is remaining?
State the difference between a primary key and foreign key?
Describe the types of sub query?
How to bring a tablespace online?
How to create an oracle database manually?
How can I get column names from a table in oracle?
How many types of synonyms in Oracle?
Explain the dml?
What is SQL Tuning Advisor in Oracle?
what is meant by magic query
How can windows applications connect to oracle servers?
What are a cluster and non-cluster index?