Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / yuvaevergreen

Since there is no common column, it may not be possible to
join two tables.
if deptno is in emp table, correlated query can be used
emp
eno ename sal deptno
1 yuva 10 tn1
2 yuv1 20 tn2
3 yuv3 30 tn1


select * from emp as e1
where sal in
(sel max(sal) from emp as e2
where e1.deptno=e2.deptno);

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you do backup and recovery in teradata?

1079


What is smp and mpp platforms?

1037


What are different table types used in teradata?

1097


What are default access rights in teradata? What explicit right can be given to a user?

1147


Explain teradata vs. Redshift?

1078


Differentiate primary key and partition key?

1034


What are the components used in smp and massively parallel processing (mpp) machines?

1097


What is spool space and when running a job if it reaches the maximum spool space how you solve the problem?

1161


how do we write scripts in unix how to execute scripts in real time anybody please needfull or give me number i will cal u

1787


What is called partitioned primary index (ppi)?

1056


What are the available join types in teradata?

1116


How is MLOAD Client System restarted after execution?

1206


What is the purpose of using case expression in teradata?

1068


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

1215


What is the maximum number of dml can be coded in a multiload script?

1157