i want department wise maxmum salary and empolyee name
Answer Posted / abhisudipta
select d.dept_name,e.emp_nm,max(e.sal) as salary
from dept d, emp e
where d.dept_no=e.dept_no and e.emp_nm = (select emp_nm from
emp where sal=(select max(sal) from emp where
dept_no=d.dept_no))
group by d.dept_name,e.emp_nm;
| Is This Answer Correct ? | 6 Yes | 7 No |
Post New Answer View All Answers
State the various uses of dbcc command?
How does oracle handle read consistency?
How to name query output columns in oracle?
How do I use unicode codesets with the weblogic jdriver for oracle driver?
Why should I use oracle database?
How to assign query results to variables?
i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)
Which dictionary tables and/or views would you look at to diagnose a locking issue?
What are the different types of record groups in oracle? Explain each of them
List the parts of a database trigger.
How do we represent comments in oracle?
What is concurrency in oracle?
What is an oracle and why it is used?
Can a formula column be obtained through a select statement ?
What is columnar storage what is the advantage?