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 / shilpa
1) select dept , max(sal) from E where month=JAN';
2) select dept , max(sal) from E ;
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How to assign values to variables?
How to convert characters to dates in oracle?
Explain the use of ignore option in imp command.
What is the usage of synonyms?
What is SQL Tuning Advisor in Oracle?
Explain the different normalization forms?
Which is better Oracle or MS SQL? Why?
Explain the function of optimizer in oracle?
How to use "while" statements in oracle?
How to pass parameters to procedures in oracle?
Please explain drop constraint oracle?
WHEN CURSOR MOVES FROM ONE FORM TO ANOTHER FORM, HOW MANY TRIGGER WILL BE FIRED AND WHAT ARE THEIR SEQUENCE?
How to drop an index?
what is meant by magic query
Which are the five query types available in oracle?