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 / kondeti srinivas

emp table having depnto and dept table contains deptno
then only we can join the two table and find out max sal
dept wise
query:
select e.deptno,d.dname,max(e.sal) from emp e,dept d
where d.deptno=e.deptno
group by e.deptno,d.dname

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain teradata utilities?

570


Explain teradata architecture?

636


Explain the parallel data extension in teradata?

659


What is the basic syntax for teradata select statement?

579


How will you solve the problem that occurs during update?

589






What is called partitioned primary index (ppi) and discuss the advantages of using it in a query?

550


Explain the meaning of Amp?

595


What are the joins in teradata and how many types of joins are there in teradata?

575


Name the five phases that come under MultiLoad Utility.

586


How can bottlenecks be identified?

585


What are the various indexes in teradata?

571


What is a node in teradata?

587


What are the available join types in teradata?

598


Explain teradata architecture in detail with a diagram.

618


Give the sizes of SMALLINT, BYTEINT and INTEGER.

668