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

What is an oracle function?

0 Answers  


nw i'm doing MBA system and planning to do oracle,database management.tell me that whether it is useful r not?.refer any course for my carrier pls

0 Answers  


i have procedure p1.and also i declare the same procedure in a package. whice one is efficient package procedure or procedure?

2 Answers   Microsoft,


master table and child table performances and comparisons in Oracle ?

0 Answers  


How to check database size in Oracle?

0 Answers   MCN Solutions,






How to check the oracle tns settings?

0 Answers  


How can you Enforce Referential Integrity in snapshots ?

1 Answers  


How to write an inner join with the where clause in oracle?

0 Answers  


Describe varray?

0 Answers  


what are the disadvantages of hierarchial database over RDBMS?

1 Answers   TCS,


how to use sequence and what use of sequence cache

1 Answers  


How can we find the size of a database?

2 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)