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


Please Help Members By Posting Answers For Below Questions

What are the most common interview questions on ETL Testing for experience?

600


material view and view disadvantages?

639


What is bulk copy or bcp in oracle?

613


What is the difference between substr & instr functions?

597


what are the default admin accounts in Oracle 10g ?

512






what is the use of triggers in Java program? I mean where do we use triggers in Java programming?

1697


What is an oracle data file?

617


What is the sql query to concatenate column values from multiple rows in oracle?

567


Difference between inner join vs where ?

615


hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards

1567


Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1369


How to load excel data sheet to oracle database

592


while i take backup using ibm tsm the following errors occurred: rman-03009 ora-19513 ora-27206 ora-19502 ora-27030 ora-ora19511

3873


How to return top 5 rows in oracle?

550


What is analyze command used for?

582