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

What is a three-tier data warehouse?

1157


What do you mean by teradata sql assistant?

1115


What is node? How many nodes and amps used in your previous project?

1157


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

1161


why use references rather than pointers in the public api, particularly for arguments which are modified?

1058


What is meant by a Parsing Engine?

1237


What are teradata utilities?

1158


Explain some differences between mpp and smp?

1159


What are the functions performed by bynet?

1092


Explain amp in teradata?

1155


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

1983


How to run a query in teradata?

1149


Highlight a few of the important components of Teradata?

1081


How would you load a very large file in teradata in general?

1092


What is the use of teradata system software?

1090