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...

I have a employee table with EMPID, EMPNAME, DEPTID, SAL
and want to fetch the maximum and minimum salary on each
dept id with the emp name. Can anyone help in this? The
result should contain the EMPNAME, DEPTID, SAL.

Answer Posted / syamal rao

You can try the bellow query in BTEQ of TERADATA.


select empname from employee with max(sal),min(sal) by deptid;

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to explain project Architecture and flow in teradata interviews?Can please anyone help on this? Am new to teradata.

4376


What is the use of virtual processor connectivity in teradata?

1036


Explain and compare pros and cons of snow flake schemas?

1035


What are the components provided on node?

1048


Highlight the differences between Primary Key and Primary Index.

1096


Different phases of multiload?

1024


Explain vproc in teradata?

1010


Highlight a few of the important components of Teradata?

1031


Where is teradata rdbms used?

1104


How do you determine the number of sessions?

1064


What is the difference between fastload and multiload? Which one is faster?

1231


Can you fastexport a field, which is primary key by putting equality on that key?

1180


How to load specific no.of records using bteq, or fastload,or multiload

1750


What do you mean by tpt in teradata?

1021


Why managing the data is important?

1021