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 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between translate and replace?

633


What is the quickest way to export a table to a flat file?

577


what are the advantages of running a database in archive log mode?

1737


ABOUT IDENTITY?

1567


How many types of database triggers exist?

580






How to update a table row with a record?

597


What is Data Dictionary Cache in Oracle?

664


How to view existing locks on the database?

553


What is rich query?

544


How to display employee records who gets more salary than the average salary in the department?

600


hello friends Im doing my final year engineering in B.Tech.. one of uncle said he can provide job in his company if im good in database management. but i have only basic knowledge about database, so like to join database management course in good intuition. so friends kindly help me to get good intuition because its my future.

1762


Explain an index segment?

648


What is a directory object?

593


What is dynamic proxy?

554


When do we use group by clause in a sql query?

572