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 meant by a Clique?

989


Mention a few of the ETL tools that come under Teradata.

1014


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

983


What is meant by a Channel Driver?

1142


Difference between inner join and outer join?

952


How to view every column and the columns contained in indexes in teradata?

982


My table got locked during mload due to a failed job. What do I do to perform other operations on it?

1041


What are the different table types supported by teradata?

895


Explain the teradata primary index mechanics in detail with a diagram.

911


Explain amp in teradata?

1008


If I wanted to run a TPump job only once per day - basically working on a file that is produced once per day - how would you set up the parameters for that sort of job ?

2420


Highlight the limitations of TPUMP Utility.

1050


Syntax for case when statement?

1010


What are the components used in smp and massively parallel processing (mpp) machines?

1004


When tpump is used instead of multiload?

1043