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 / 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 are the string manipulation operators and functions associated with teradata?

1027


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

1904


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

959


How teradata makes sure that there are no duplicate rows being inserted when its a set table?

928


How do you do backup and recovery in teradata?

962


how do you manage the production space. what are the proactive methods you can take ?

1884


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

983


What is real time and near real time data warehousing?

1065


What do you mean by fastexport in teradata?

941


What exactly do you know about catching in teradata?

991


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

982


How will you solve the problem that occurs during update?

987


What is the purpose of indexes?

1012


List out all forms of LOCKS that are available in Teradata.

913


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

977