write a query to get maximum salary from the employers table
without duplicates....kindly help me

Answers were Sorted based on User's Feedback



write a query to get maximum salary from the employers table without duplicates....kindly help me..

Answer / rama

select (distinct max(sal)) from emp

Is This Answer Correct ?    16 Yes 7 No

write a query to get maximum salary from the employers table without duplicates....kindly help me..

Answer / sudheer113

MAX(SAL) will not give duplicate records in a single group

Is This Answer Correct ?    1 Yes 0 No

write a query to get maximum salary from the employers table without duplicates....kindly help me..

Answer / anil kumar

select distinct max(sal) from table name

Is This Answer Correct ?    2 Yes 5 No

write a query to get maximum salary from the employers table without duplicates....kindly help me..

Answer / deva

select (distinct max(sal)) from emp
group by sal.

When ever you use goupfunctions in select statement grup by clause is must.....other wise it will throw an error

Is This Answer Correct ?    8 Yes 13 No

write a query to get maximum salary from the employers table without duplicates....kindly help me..

Answer / asdfg

select (distinct max(sal)) from emp
group by sal.

When ever you use goupfunctions in select statement grup by
clause is must.....other wise it will throw an error

Is This Answer Correct ?    0 Yes 9 No

Post New Answer

More Informatica Interview Questions

Whats the difference between informatica powercenter server, repositoryserver and repository?

0 Answers  


delete data from staging table as it loads to target table.here is the case we are getting data from 3 different server.a b and c.the data from server A loaded into staging table and we ran the task and data loaded to target table.now today data from server B and C also got loaded to the staging table.now what techniques and what transformations should be used to delete only the data which has been loaded only to the target.we need to delete only that data from staging which has been loaded into the target.looking for your responses

2 Answers   Motorola,


can we send mail when ever it get success or faulure to other mailid?(Not company mail id)

1 Answers   Puma,


How can we join the tables if they don't have primary and foreign key relationship and no matching port?

7 Answers  


Which transformation should we use to normalize the COBOL and relational sources?

4 Answers   DELL, IBM, Lehman Brothers,






Mention few power centre client applications with their basic purpose?

0 Answers  


Please create a mapping where I have source which has one column with name like Aman_Gupta Rakesh_Mehra Sachin_More I want the target field should contain the name in reverse order i.e Gupta_Aman Mehra_Rakesh More_Sachin. Can you please tell me what transformation would be needed to do this.

5 Answers  


How do you take care of security using a repository manager

2 Answers  


Diffrence between static and dynamic cache

2 Answers   HCL,


There are 10 flat files; out of 10 files 1 file is empty. How do you identify the empty file? How can you load all files into targets?

1 Answers   Accenture,


what is the difference between informatica6.1 and infomatica7.1

0 Answers   TCS,


If i have source as flat file. how can i store the header and trilor into one target and data into one more target. |------>target1(header+trailor) source------ |------>target2(data) can any one please help me

0 Answers   IBM, TCS,


Categories