we have two tables emp,dept.emp has eno,ename,sal and dept
has deptno,dname.how to find maxsal of each dept wise.which
join used for joining.

Answer Posted / ram reddy

Prerequisite
-------------
Both emp and dept tables should have deptno column

select depno,max(sal)
from emp e,dept d
where e.deptno=d.deptno
group by deptno;

Is This Answer Correct ?    14 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the parallel data extension in teradata?

659


Highlight the points of differences between the database and user in Teradata.

591


What is smp and mpp platforms?

531


How do you determine the number of sessions?

615


Explain the term 'tables' related to relational database management system?

598






What do you mean by teradata intellicloud?

601


What are differences between teradata and ansi session modes in teradata?

630


What is collect statistics?

589


List out all forms of LOCKS that are available in Teradata.

556


What is spool space?

606


What is a three-tier data warehouse?

635


what is object level locking ? where do appear this type of locking ?

3117


What is meant by Teradata Gateway?

586


Explain PDE.

608


What are the functions performed by bynet?

611