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

Why do you get spool space errors? How do trouble-shoot them?

579


how can we analyze the locks ?

1692


In a table can we use primary key in one column and in another column both unique and not null constrains.if yes how?

563


How to find duplicates in a table?

599


Describe primary index in teradata. And what are the available primary index types?

532






List the logical and conditional operators that are used with teradata along with their meanings?

540


How is MLOAD Teradata Server restarted after execution?

639


What is bteq utility in teradata?

561


What are the different softwares used with their functions in teradata?

567


What are the main components of teradata system?

574


What is meant by a Parsing Engine?

697


Differentiate database data and data warehouse data?

573


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

579


If Fast Load Script fails and only the error tables are made available to you, then how will you restart?

624


How do you define Teradata?

598