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 the relationship among Database, Tablespace and Data file?

4 Answers  


What are the uses of Database Trigger ?

0 Answers  


1.display list of all users from ur data base.what is the query?

3 Answers   CGI, IBM,


How does Oracle guarantee data integrity of data changes?

0 Answers  


Explain the family trees and connection by clause

0 Answers  






What privilege is needed for a user to create tables in oracle?

0 Answers  


What is bind variable in oracle 11g?

0 Answers  


How do I connect to oracle database?

0 Answers  


How to turn on or off recycle bin for the instance?

0 Answers  


Explain constraining triggers.

0 Answers  


State all possible different index configurations a table can possibly have?

0 Answers  


What is a table index?

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)