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

What is the difference between teradata and basic rdbms?

574


What is a node in teradata? Explain

607


In Teradata, what is the significance of UPSERT command?

599


If a Node is busy what are the steps you can take to avoid ?

1881


What are the different design perspectives used in teradata?

558






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

643


What do high confidence, low confidence and no confidence mean in explain plan?

602


What are the different methods ot loading a dimension table? A fact table etc?

584


What is basic teradata query language?

646


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

555


how can we analyze the locks ?

1708


What are aggregate tables? How do you design them using teradata?

645


what are the day to day activities of teradata DBA ?

5380


What are the frequently used data types in teradata?

608


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

581