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

If the PMON is not working then how do you identify and monitor all the processes, resources and sessions ?

2131


tomorrow i have interview in infosys.can someone pour any suggestions or any interview questions. thank you

770


Explain and compare pros and cons of start schemas?

974


In Teradata, what is the significance of UPSERT command?

1129


How do you create tables? Exact syntax, and create profiles, users in teradata?

973


What is the use of teradata system software?

983


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

972


What is meant by a dispatcher?

955


What happens when a node suffers a downfall?

1057


What is the command in bteq to check for session settings ?

1115


Hi Friends, Please send me Teradata Materials for certifications Thanks in advance !!

2094


If the PMON is not working then how do you manage and monitor all processes, resources and sessions etc.

2099


What is the particular designated level at which a LOCK is liable to be applied in Teradata?

981


What is teradata?

1059


What do you mean by teradata sql assistant?

998