Disply the dname wise maximum salary

Answers were Sorted based on User's Feedback



Disply the dname wise maximum salary..

Answer / harsh sugandhi

select dname, max(sal) from dept group by dname;

Is This Answer Correct ?    28 Yes 0 No

Disply the dname wise maximum salary..

Answer / naveen

SELECT
D.DEPTNO,D.DNAME,MAX(E.SAL)
FROM
EMP E,DEPT D
WHERE
D.DEPTNO=E.DEPT.NO
GROUP BY D.DEPTNO,D.DNAME

Is This Answer Correct ?    12 Yes 1 No

Disply the dname wise maximum salary..

Answer / jilani

select max(sal) from dept group by dname;

Is This Answer Correct ?    10 Yes 4 No

Disply the dname wise maximum salary..

Answer / gyana ranjan behera

SELECT DNAME,MAX(SAL) FROM DEPARTMANT_TABLE GROUP BY DNAME

Is This Answer Correct ?    4 Yes 0 No

Disply the dname wise maximum salary..

Answer / damreddy

Select deptname ,max(sal) from depttable group by depertmentName

Is This Answer Correct ?    1 Yes 1 No

Disply the dname wise maximum salary..

Answer / lakshmi

SELECT d.dname,e.sal from emp e,dept d where e.deptno=d.deptno
group by dname

Is This Answer Correct ?    2 Yes 2 No

Disply the dname wise maximum salary..

Answer / divya

SELECT d.dname,max(e.sal) from emp e,dept d where e.deptno=d.deptno
group by d.dname

Is This Answer Correct ?    0 Yes 0 No

Disply the dname wise maximum salary..

Answer / reddeppa reddy

select deptid, max(sal) from department table group by sal

Is This Answer Correct ?    5 Yes 15 No

Disply the dname wise maximum salary..

Answer / reddeppa reddy

select departmentname,max(sal) from department table group
by deptid

Is This Answer Correct ?    1 Yes 11 No

Post New Answer

More Data Warehouse General Interview Questions

What is the main difference between star and snowflake star schema? Which one is better and why?

0 Answers  


What is an er diagram?

0 Answers  


Explain what are snapshots? What are materialized views & where do we use them? What is a materialized view log?

0 Answers  


What is static and local variable?

0 Answers  


What needs to be done when the database is shutdown?

0 Answers  






What are the differences between star and snowflake schema?

0 Answers  


What are the different types of data warehouses?

0 Answers  


What are fact, dimension, and measure?

0 Answers  


What is a fact table?

1 Answers  


What are Aggregate tables?

0 Answers  


What is crass reference table?

0 Answers  


What is informatica architecture?

0 Answers  


Categories