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

What are the ansi data types supported in oracle?

516


How to define an oracle cursor variable?

563


does the query needs a hint to access a materialized view?

1460


Can we create trigger on materialized view in oracle?

559


Why do we use coalesce function in oracle?

623






How to define a data field as not null?

628


How to install oracle odbc drivers?

619


What is recovery manager in Oracle?

587


How to define an anonymous block?

612


How to list all indexes in your schema?

574


HI Friends Myself Manoj,i am from bengaluru.i have 1 yr of exp in PLSQL but not upto the mark..now attending interviews but m not able to clear even 1 round..i have attended 3 interviews till today.purpose of writing this query is,i want to know the intreview topics that interviewer going to ask frequently,mainly SCENARIO based questions.IF anybody have any PLSQL projects please give it to me,it will helps me alot.Thanks for your patience.

986


Can we protect our pl/sql source code?

570


How do I use unicode codesets with the weblogic jdriver for oracle driver?

546


What are group functions in oracle?

581


material view and view disadvantages?

633