two tables are there
emp(eno,ename,sal,deptno),dept(deptno,dname).how form the
query in deptno,ename,max(sal)
Answers were Sorted based on User's Feedback
Answer / ajit
select e.ename,d.deptno,max(e.sal)
from emp e, dept d
where e.deptno = d.deptno
group by e.ename, d.deptno;
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / no_name
select deptno,dname,max(sal) dept_max
from
(select empno, e.deptno, d.dname, e.sal
from emp e,
dept d
where e.deptno = d.deptno)
group by deptno,dname;
Is This Answer Correct ? | 2 Yes | 2 No |
Explain integrity constraints?
Explain the use of inctype option in exp command.
What is merge statement used for?
Give the different types of rollback segments.
candidate key is subset of super key but not vice-verse explain
What is a proxy object?
How to open a cursor variable?
What is the usage of control file in oracle?
What is the function of Optimizer ?
What are data pump export and import modes?
what are actual and formal parameters?
Please explain oracle data types with examples?