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



two tables are there emp(eno,ename,sal,deptno),dept(deptno,dname).how form the query in deptno,e..

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

two tables are there emp(eno,ename,sal,deptno),dept(deptno,dname).how form the query in deptno,e..

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

Post New Answer

More Oracle General Interview Questions

Explain integrity constraints?

0 Answers  


Explain the use of inctype option in exp command.

0 Answers  


What is merge statement used for?

0 Answers  


Give the different types of rollback segments.

0 Answers  


candidate key is subset of super key but not vice-verse explain

0 Answers  






What is a proxy object?

0 Answers  


How to open a cursor variable?

0 Answers  


What is the usage of control file in oracle?

0 Answers  


What is the function of Optimizer ?

1 Answers  


What are data pump export and import modes?

0 Answers  


what are actual and formal parameters?

0 Answers  


Please explain oracle data types with examples?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)