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


Please Help Members By Posting Answers For Below Questions

 What are the oracle DML commands possible through an update strategy?

583


What is a synonym? What are its various types?

626


How to increment dates by 1 in oracle?

564


What is the database name in oracle?

537


How to install oracle odbc drivers?

627






State and explain about oracle instance?

551


How to define a variable of a specific record type?

615


How many types of table in Oracle?

622


Explain the difference between replace() and translate() functions in oracle?

585


What is bulk collect in oracle?

560


What is a user account in oracle?

633


How to bring a tablespace offline?

544


What is an oracle database table?

598


What do you mean by group by clause?

565


what happened to the global index when I truncate the data in one of the partition?

1523