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

What are the various indexes in teradata? Why are they preferred?

963


What are the available primary index types in teradata.

987


How many tables can you join in v2r5?

1011


Explain the new features of teradata?

998


What are the frequently used data types in teradata?

1020


Which is faster fastload or multiload?

1049


What are the steps to create a data model?

994


What is teradata? Also, list out some of the primary characteristics of teradata.

995


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

987


What is logical data model?

1154


Difference between inner join and outer join?

961


What is the difference between teradata and oracle?

968


Backup Script was blocked you are unable to archive the data now. how do you analyze it and where do you identify ?

2007


What are the joins in teradata?

932


How many codd's rules are satisfied by teradata database?

1055